DLookUp (Text Field?)

SteveI

Registered User.
Local time
Today, 17:13
Joined
Apr 22, 2012
Messages
20
Please assist...Is it possible for a DLookup code to work when the lookup filed is a text field. It works when it is a number field.
 

Attachments

Yes, but the criteria need to have single quote delimiters.

Code:
DLookup("whatever", "tablename", "fieldname='somestring'")
or
Code:
DLookup("whatever", "tablename", "fieldname='" & somevariable & "'")
 
thank you. It worked!!
 

Users who are viewing this thread

Back
Top Bottom