Hi Guys, can someone tell me what's wrong with this code?
basically, the recordset associated to 'source' is a table - but as the table is generated in a previous step and can have different numbers of columns each time, i can't explicitely state which column to lookup.....
thanks!
Chris
Code:
em_name = DLookup("[MODE]", "[SPM Entry Mode Filter]", "[MODE ID] = " & em_no)
If IsNull(("source![" & em_name & "]")) Then
LOADING = 0
Else
LOADING = ("source![" & em_name & "]")
End If
basically, the recordset associated to 'source' is a table - but as the table is generated in a previous step and can have different numbers of columns each time, i can't explicitely state which column to lookup.....
thanks!
Chris