Look Up value in a query

AnnPhil

Registered User.
Local time
Today, 19:33
Joined
Dec 18, 2001
Messages
246
Can you use the DLookup function to look up a value in a query w/o putting in a criteria? Or is there another funtion that i should use.

Have a report that needs a value from a query but it not the record source of the report.,
 
Sure, but you'll get the value from the first record in the query. If that's okay, then you don't need a criteria.
 
That's fine, how do i leave the criteria section, i tried the following but it didn't work

DLookup ("[fieldname]","[queryname]","")

Thanks
 
Leave it out completely:

DLookup("[fieldname]","[queryname]")
 
I believe it should just be:

=DLookUp("[FieldName]","[QueryName]")
 
Good point; it does need the = as a control source.
 
I sure feels stupid! I was forgetting the = sign, thanks everyone
 

Users who are viewing this thread

Back
Top Bottom