G
Guest
I have a Form with a combo box on it. That control is used in the criteria
of a Query which feeds a report. When a user selects an item in the combo
box it passes it to the Query and everythign is fine. The syntax I used is
[Forms]![frmCriteriaForTakenNotTakenRpt]![cboCoSA].
Now the problem is if a user doesn't select an item from the combo box I
don't want any criteria to be passed to that field. I attempted this with
the following syntax
IIf(IsNull([Forms]![frmCriteriaForTakenNotTakenRpt]![cboCoSA]),([tblUnitsToCoSA].[strCoSA])
Like "*",[Forms]![frmCriteriaForTakenNotTakenRpt]![cboCoSA]). The problem is
that it won't pass the "Like *" paramater to the field and thus not filter on
that field. Can anyone help me out on this???
Ken T.
of a Query which feeds a report. When a user selects an item in the combo
box it passes it to the Query and everythign is fine. The syntax I used is
[Forms]![frmCriteriaForTakenNotTakenRpt]![cboCoSA].
Now the problem is if a user doesn't select an item from the combo box I
don't want any criteria to be passed to that field. I attempted this with
the following syntax
IIf(IsNull([Forms]![frmCriteriaForTakenNotTakenRpt]![cboCoSA]),([tblUnitsToCoSA].[strCoSA])
Like "*",[Forms]![frmCriteriaForTakenNotTakenRpt]![cboCoSA]). The problem is
that it won't pass the "Like *" paramater to the field and thus not filter on
that field. Can anyone help me out on this???
Ken T.