Access 2000, Windows XP
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]")
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]")