G
Guest
I'm trying to use dlookup in the control source of a text field in the header
section
of a report. If I used a query to get the result it would be this:
select EMP_CODE from EMPLOYEE WHERE EMP_CODE = 'nah'
The dlookup syntax that I'm using is this:
=DLookUp("[EMP_CODE]","[EMPLOYEE]","[EMP_CODE] = 'ddonah' ")
I get a "#error" when I run the report. This is just a test to see if I can
get anything to show up on the report. Eventually
I want to use a dlookup using variables that will come from a form. I don't
know if it
makes any differenct but the table that I'm trying to get the data from is
not used
anywhere else in the report.
Thanks,
section
of a report. If I used a query to get the result it would be this:
select EMP_CODE from EMPLOYEE WHERE EMP_CODE = 'nah'
The dlookup syntax that I'm using is this:
=DLookUp("[EMP_CODE]","[EMPLOYEE]","[EMP_CODE] = 'ddonah' ")
I get a "#error" when I run the report. This is just a test to see if I can
get anything to show up on the report. Eventually
I want to use a dlookup using variables that will come from a form. I don't
know if it
makes any differenct but the table that I'm trying to get the data from is
not used
anywhere else in the report.
Thanks,