I learned not to do calculated fields in a table, so I'm trying to build the Query. I need a lookup based on 4 attributes. A number value is designated per row based on the 4 attributes. I need to get that number.
Below are my two expressions. The first works, the second doesn't.
Expr1: [Data1] & " - " & [Data2] & " - " & [Data3] & " - " & [Data4]
Expr2: DLookUp("[ReferenceSheet]![Number]","[ReferenceSheet]","[ReferenceSheet]![ComparisonConcatenation]=[Expr1]")
On my form I got that formula to work, but it doesn't work in the Query. It has something to do with the Criteria portion because I'm getting a Data Type Mismatch.
Is there a better way to do this? I'm still new and largely excel minded
Thanks in advance!
Below are my two expressions. The first works, the second doesn't.
Expr1: [Data1] & " - " & [Data2] & " - " & [Data3] & " - " & [Data4]
Expr2: DLookUp("[ReferenceSheet]![Number]","[ReferenceSheet]","[ReferenceSheet]![ComparisonConcatenation]=[Expr1]")
On my form I got that formula to work, but it doesn't work in the Query. It has something to do with the Criteria portion because I'm getting a Data Type Mismatch.
Is there a better way to do this? I'm still new and largely excel minded
Thanks in advance!