Dlookup issue

Tark221

Registered User.
Local time
Today, 04:53
Joined
Oct 12, 2012
Messages
74
Hi everyone,

I'm using a Dlookup in expression builder and it's only returning the value of the first record rather than the criteria I specify. Has anyone come across this issue before? Could someone give me an example of a dlookup.

Thank you
 
Hi,

Thanks for the quick reply

im using this in the control source in properties, this is tied to a textbox

=DLookUp("[STAFF_AREA]","[RAW]","[REFERENCE_NUMBER]=[tbID]")
 
Is [REFERENCE_NUMBER] the Primary Key or a unique number in the Table?
 
Sure that was a typo Pat..
Code:
=DLookUp("[STAFF_AREA]","[RAW]","[REFERENCE_NUMBER][COLOR=Red][B]= " & tbID)[/B][/COLOR]
 

Users who are viewing this thread

Back
Top Bottom