Check Value in Table

benc

Registered User.
Local time
Today, 00:00
Joined
Dec 31, 2001
Messages
57
I have to check to see if a value exists in a table.
I wondered if a Dlookup would work but i would need it to return a true of false value. Can anyone advise me on the code.

Thanks
 
You can use Dlookup, but DCount would probably be just a bit easier. Use it like this:
IIf(DCount(field,table,criteria)>0,true value,false value)
 

Users who are viewing this thread

Back
Top Bottom