T
Thumper
I have a form that request the user to enter up to five
job numbers. The query is tied to a report. I am using
the following syntax to list the job names on the report,
however, only the first one seems to be working. (I.E
the IIF statement does not appear to be working). When I
execute the query manually, it does appear to be working
properly.
Any idea why?
=(IIf([jobno]=[Forms]![frmFPISelect]![txtjob1],[job
title]))
=(IIf([jobno]=[Forms]![frmFPISelect]![txtjob2],[job
title]))
=(IIf([jobno]=[Forms]![frmFPISelect]![txtjob3],[job
title]))
=(IIf([jobno]=[Forms]![frmFPISelect]![txtjob4],[job
title]))
=(IIf([jobno]=[Forms]![frmFPISelect]![txtjob5],[job
title]))
Example of Report (if 5 job numbers entered in form):
Job Title 1
Job Title 2
Job Title 3
Job Title 4
Job Title 5
..
job numbers. The query is tied to a report. I am using
the following syntax to list the job names on the report,
however, only the first one seems to be working. (I.E
the IIF statement does not appear to be working). When I
execute the query manually, it does appear to be working
properly.
Any idea why?
=(IIf([jobno]=[Forms]![frmFPISelect]![txtjob1],[job
title]))
=(IIf([jobno]=[Forms]![frmFPISelect]![txtjob2],[job
title]))
=(IIf([jobno]=[Forms]![frmFPISelect]![txtjob3],[job
title]))
=(IIf([jobno]=[Forms]![frmFPISelect]![txtjob4],[job
title]))
=(IIf([jobno]=[Forms]![frmFPISelect]![txtjob5],[job
title]))
Example of Report (if 5 job numbers entered in form):
Job Title 1
Job Title 2
Job Title 3
Job Title 4
Job Title 5
..