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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple Criteria DLookUps

Status
Not open for further replies.

Vidar13

IS-IT--Management
Apr 4, 2001
90
US
I'm trying to lookup a value based on more than one criteria in a report. Is there a way to do this with the DLookUp function?

If not, is there a way to pass the current page value of a report back to a parameter query that would filter based on more than one field's criteria?
 
One other thing I wanted to clarify:

I've used the [Forms]![FormName]![FieldName] as a parameter in a query and it works fine (so long as the form is loaded), but it doesn't seem to apply to reports. I'm trying to use the [Reports]![ReportName]![FieldName] but it comes back with an empty recordset each time.
 
Reports are only for displaying data, they can't be used to supply data to another place to run another report/query/form like you're trying to do.

What is it you're trying to accomplish and maybe I can help you come up with a better way to do it. Joe Miller
joe.miller@flotech.net
 
Okay, that's what I suspected. I was able to find an article on Microsoft's KB that covers multiple criteria DLookups, which I've been able to accomplish the same end goal from within the report itself.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top