Whats wrong with this DLookup function?

gojets1721

Registered User.
Local time
Today, 08:41
Joined
Jun 11, 2019
Messages
430
I'm pulling my hair out with this one. I have this DLookup function in a report field's control source and it keeps showing #Error.

I can't figure out what's wrong. Is there anything structurally wrong with this function?

Code:
=DLookUp("[Raw Number]","tblAudits","[LAST NAME] = SMITH-JOHNSON")
 
need single quotes around strings
"[LAST NAME] = 'SMITH-JOHNSON'"
 

Users who are viewing this thread

Back
Top Bottom