Hello All,
I am trying to create an IIF statement which checks the combo box in a form. The Combo box has three options male, female & either. If the combo displays either I want all records to display, otherwise just select the gender chosen in the combo box.
I have tried using an or statement:
IIf([Forms]![Assignment]![Gender]="Either","male" Or "female",[Forms]![Assignment]![Gender])
I have tried using like:
IIf([Forms]![Assignment]![Gender]="Either",Like "*",[Forms]![Assignment]![Gender])
I have also just tried *:
IIf([Forms]![Assignment]![Gender]="Either","*",[Forms]![Assignment]![Gender])
In all cases the false condition works fine but when the statement is true, nothing is displayed.
Any help, tips or suggestions are much appreciated
Moni
I am trying to create an IIF statement which checks the combo box in a form. The Combo box has three options male, female & either. If the combo displays either I want all records to display, otherwise just select the gender chosen in the combo box.
I have tried using an or statement:
IIf([Forms]![Assignment]![Gender]="Either","male" Or "female",[Forms]![Assignment]![Gender])
I have tried using like:
IIf([Forms]![Assignment]![Gender]="Either",Like "*",[Forms]![Assignment]![Gender])
I have also just tried *:
IIf([Forms]![Assignment]![Gender]="Either","*",[Forms]![Assignment]![Gender])
In all cases the false condition works fine but when the statement is true, nothing is displayed.
Any help, tips or suggestions are much appreciated
Moni