brendoaccess
Technical User
Hi
I have a form that allows the user to make choices of 3 collectors, Kim, George and David via a Combo Box, cboCollector, that feeds into a query and thence a report.
But if they don't know the parameter they want, or havent a preference and want to see a report that includes all the collectors, I'm stuck, because leaving the field blank returns no records - I thought about an Iif function in the criteria section of the Query for the field Collector:
IIf([Forms]![frmRunPremisesqry]![cboCollector] Is Null,""Kim" Or "George" Or "David"",[Forms]![frmRunPremisesqry]![cboCollector])
but it doesnt work. Woe is me.
All help appreciated. B
I have a form that allows the user to make choices of 3 collectors, Kim, George and David via a Combo Box, cboCollector, that feeds into a query and thence a report.
But if they don't know the parameter they want, or havent a preference and want to see a report that includes all the collectors, I'm stuck, because leaving the field blank returns no records - I thought about an Iif function in the criteria section of the Query for the field Collector:
IIf([Forms]![frmRunPremisesqry]![cboCollector] Is Null,""Kim" Or "George" Or "David"",[Forms]![frmRunPremisesqry]![cboCollector])
but it doesnt work. Woe is me.
All help appreciated. B