I have this DLookUp in the control source of an unbound text box on a report.
=DLookUp("AgentNum","AgentLookup","BSONum = " & [BSO])
lookup table:
name: AgentLookup
1st column - BSONum
2nd column - AgentNum
my report is opened by a parameter asking what BSO, which is a number (could be number and text, 1111b) simply, I need the text box to look up the number of people in a certain BSO. I get an #error on the report. this code was copied exactly from my sample DB, where there it worked fine...any ideas on why it’s not working?
=DLookUp("AgentNum","AgentLookup","BSONum = " & [BSO])
lookup table:
name: AgentLookup
1st column - BSONum
2nd column - AgentNum
my report is opened by a parameter asking what BSO, which is a number (could be number and text, 1111b) simply, I need the text box to look up the number of people in a certain BSO. I get an #error on the report. this code was copied exactly from my sample DB, where there it worked fine...any ideas on why it’s not working?