N
Neil Chelo
I have a report based on a query. The query looks at an open forms unbound
cbobox to determine the querys criteria. If the cbobox is null then the
criteria will be set to a specific employees ID# otherwise it will use the
ID# from the cbobox. This works fine unless I want to add more ID#'s to the
criteria if the combo box is null. See below.
IIf([Forms]![frmFundNotesList]![cboNotesFrom] Is
Null,3398,[forms]![frmFundNotesList]![cboNotesFrom]) This IIF statement
works fine. It displays all records from employee id 3398
IIf([Forms]![frmFundNotesList]![cboNotesFrom] Is Null,3398 or 3410 or
3423,[forms]![frmFundNotesList]![cboNotesFrom])
This IIF statement does not generate any results. Why won't this second
statement work?
cbobox to determine the querys criteria. If the cbobox is null then the
criteria will be set to a specific employees ID# otherwise it will use the
ID# from the cbobox. This works fine unless I want to add more ID#'s to the
criteria if the combo box is null. See below.
IIf([Forms]![frmFundNotesList]![cboNotesFrom] Is
Null,3398,[forms]![frmFundNotesList]![cboNotesFrom]) This IIF statement
works fine. It displays all records from employee id 3398
IIf([Forms]![frmFundNotesList]![cboNotesFrom] Is Null,3398 or 3410 or
3423,[forms]![frmFundNotesList]![cboNotesFrom])
This IIF statement does not generate any results. Why won't this second
statement work?