This is my 1st post ever here, thank you.
I'm using Access 2010. I have the following "base" DLookup statement that works except for null situations:
BadgeNumber1: DLookUp("[BadgeNumber]","tblChefs","[autoid] =" & [FirstChoiceChef])
If there is nothing to look up, it returns #Error. I got the bright idea of making a modified statement to handle null situations, it looks like this:
IIf(IsNull(DLookUp("[BadgeNumber]","tblChefs","[autoid] =" & [FirstChoiceChef])),"NothingToSee",DLookUp("[BadgeNumber]","tblChefs","[autoid] =" & [FirstChoiceChef]))
(it uses this as its foundation: IIf(IsNull(x), "Oops", x) where x is the previous "base" DLookup statement)
There are no syntax errors, however it still returns #Error, and I'm guessing it's because "BadgeNumber" is a numeric field. Blank values that produce this error, they don't have a default value of 0, they are just blank.
Tips?