I cannot seem to get the following code to run. I appear to be having an issue with using sHostName in my Dlookup statement. What am I doing wrong?
Dim sHostName, LNum As String
sHostName = Environ$("computername")
LNum = DLookup("LineNumber", "tblLineNumber", "ComputerName = sHostName")