monkeyman77
Registered User.
- Local time
- Yesterday, 23:41
- Joined
- Nov 30, 2016
- Messages
- 47
I am having trouble with an IIF statement that i have in a query criteria:
IIf([Forms]![FormName]![Combo1]="OpenOnly",No,IIf([Forms]![FormName]![Combo1]="ClosedOnly",Yes,IIf([Forms]![FormName]![Combo1]="Open&Closed", {{{{This is where my issue is. I can't close the IIf statement. I need it to say Yes and No but the query won't run then}}}
Basically, i need my IIf statement to say
If combo box = OpenOnly Then No
If combo box = ClosedOnly Then Yes
If combo box = Open&Closed Then return all
IIf([Forms]![FormName]![Combo1]="OpenOnly",No,IIf([Forms]![FormName]![Combo1]="ClosedOnly",Yes,IIf([Forms]![FormName]![Combo1]="Open&Closed", {{{{This is where my issue is. I can't close the IIf statement. I need it to say Yes and No but the query won't run then}}}
Basically, i need my IIf statement to say
If combo box = OpenOnly Then No
If combo box = ClosedOnly Then Yes
If combo box = Open&Closed Then return all