DLookUp

  • Thread starter Thread starter DS
  • Start date Start date
D

DS

I'm trying to grab the TerminalID through Environ but it doesn't seem to
be grabbing it. Any help appreciated.
Thanks
DS

Me.TxtTerm = DLookup("[TerminalID]", "tblInfoItem", "TerminalID = Environ")
 
If you are looking for the name of the PC, check the API at
http://www.mvps.org/access/api/api0009.htm.
Me.TxtTerm = DLookup("[TerminalID]", "tblInfoItem", "TerminalID = '" &
fOSMachineName() &"'")

I don't think Environ variables are always reliable but they are call as a
function with an argument.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

DLookup Seperate Lines 2
DCount Syntax 6
Table Quandry 11
Questionable DIM Type 5
Duplicates 3
ControlSource Not Working 3
How can I count Rows and Columns 3
SQL UPDATE on the fly 5

Back
Top