DLookup with multiple criteria

G

Guest

Hi


I need to use DLookup to lookup a value for my report in a table but it
needs to be based on 3 criteria in the report.

What I need to look up is ScheduledHours from tblLeadInfo based on Week,
Period and Ride in the current grouping on the report.

As always Thanks in advance for any help on this

Chuck
 
S

Stefan Hoffmann

hi Chuck,
I need to use DLookup to lookup a value for my report in a table but it
needs to be based on 3 criteria in the report.

What I need to look up is ScheduledHours from tblLeadInfo based on Week,
Period and Ride in the current grouping on the report.
Something like this will do it:

DLookup("ScheduledHours", _
"tblLeadInfo", _
"[Week]=? AND [Period]=? AND [Ride]=?")


mfG
--> stefan <--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top