Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dlookup field from query

Status
Not open for further replies.

eebabe

IS-IT--Management
Jul 17, 2003
54
0
0
US
Hi:

Is it possible to dlookup fields from queries? I tried this:

=DLookUp("[HRI Refused Svcs]", "q_HRI_Ref/Refsd_Cnt",
"[Program] = '10'")

It didn't work maybe because the syntax is wrong. Perhaps there is a better way to reference fields from queries. If it's not possible, maybe I can create a report from the query and then reference that field from the report. Is this even possible?

Thanks.
 
eebabe,
Is [Program] text or numeric? Your expression suggests it is text.

Did you try wrap you query name with []s since there is an / in the middle of the name?



Duane
Hook'D on Access
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top