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

DLookup using multiple Report Criteria

Status
Not open for further replies.

tammy23

Technical User
Aug 3, 2010
17
US
I need to lookup an entry in WellLogDetails based on two criteria in Report2 and all three of the following codes return errors....any suggestions?

'a = DLookup("[FileLoc]", "WellLogDetails", "[Well]=Reports!Report2![Well]" And "[ID]=Reports!Report2![ID]")

'a = DLookup("[FileLoc]", "WellLogDetails", "[Well]='" & Reports!Report2![Well] & "' AND [ID]= '" & Reports!Report2![ID] & "'")

a = DLookup("[FileLoc]", "WellLogDetails", "[Well]=[Reports]![Report2]![Well] and [ID]=[Reports]![Report2]![ID]")
 
hi,

Please post MS Access questions in one of the many MS Access formums like forum703.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Thanks...can I move it or should I just repost?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top