G
Guest
I am getting a #Error message in the AMOD field of my query QUERY1:
AMOD: iif(IsNull([MSIZE]),"N/A",DLookUp("MOD","QUERY2","MODID= " & [MSIZE]))
MSIZE is a lngInt field located in 'Query1'. Sometimes it has a Null value.
MOD is the value I want to retrieve from QUERY2.
MOD is a field that has the expression MOD:[WIDTH] & " ft x " & [LENGTH] & "
ft"
However, if I substitute MOD with WIDTH in the DLookUp, it works. But I need
to have the text result instead of a number.
Any ideas why this doesn't work?
AMOD: iif(IsNull([MSIZE]),"N/A",DLookUp("MOD","QUERY2","MODID= " & [MSIZE]))
MSIZE is a lngInt field located in 'Query1'. Sometimes it has a Null value.
MOD is the value I want to retrieve from QUERY2.
MOD is a field that has the expression MOD:[WIDTH] & " ft x " & [LENGTH] & "
ft"
However, if I substitute MOD with WIDTH in the DLookUp, it works. But I need
to have the text result instead of a number.
Any ideas why this doesn't work?