In the footing of a continuous form, I have a text box whose ControlSource is:
The form displays with an apparent error:Code:iif(intNewCatID = 0,"",DLookup("[CategoryName]","tblCategories","CatID = " & intNewCatID))
To view the situation in debug mode, I inserted the code in the OnOpen event with the appropriate stop:
As you can see in the above screenshot, the IIF statement returned the appropriate text string given the current value of intNewCatID.
What am I missing when the IFF is used as the ControlSource property of the textbox?