I have a parameter query that is passed three possible options from a combo box. I have an iif statement to evaluate the criteria.
It goes a little something like this.....
iif([Forms]![frmWhatever]![combo]= "Choose sales","Sale", iif([Forms]![frmWhatever]![combo]= "Choose non-sales","Non-Sale","'Non-Sale'" & " Or " & "'Sale'"))
If "Choose sales" is selected , great!
If "Choose non-sales" is selected , great!
However I cannot get the query to select all records i.e sale and non-sale.
Would greatly appreciate any help.
It goes a little something like this.....
iif([Forms]![frmWhatever]![combo]= "Choose sales","Sale", iif([Forms]![frmWhatever]![combo]= "Choose non-sales","Non-Sale","'Non-Sale'" & " Or " & "'Sale'"))
If "Choose sales" is selected , great!
If "Choose non-sales" is selected , great!
However I cannot get the query to select all records i.e sale and non-sale.
Would greatly appreciate any help.