F
FBxiii
Hi. I have a form that runs reports depending on criteria selected by the
user.
The form contains a Combo Box that contains 'Types'. I have populated the
combo box with the different available 'types' and an 'All Types' option.
In the query, I have placed the following in the Criteria for the SAR_Type
field.
IIf([forms]![frmSAR_Statistics]![cmbSAR_Type]<>"All
Types",[forms]![frmSAR_Statistics]![cmbSAR_Type],"*")
What I am trying to achieve is for the query to show either the Selected
'Type' or All Types. So the IIf statement will either take the value from
the Combo box, or just take all values.
It doesnt seem to work so I think I may be missing something.
Can anyone help?
Cheers,
Steve.
user.
The form contains a Combo Box that contains 'Types'. I have populated the
combo box with the different available 'types' and an 'All Types' option.
In the query, I have placed the following in the Criteria for the SAR_Type
field.
IIf([forms]![frmSAR_Statistics]![cmbSAR_Type]<>"All
Types",[forms]![frmSAR_Statistics]![cmbSAR_Type],"*")
What I am trying to achieve is for the query to show either the Selected
'Type' or All Types. So the IIf statement will either take the value from
the Combo box, or just take all values.
It doesnt seem to work so I think I may be missing something.
Can anyone help?
Cheers,
Steve.