P
Phill
i am trying to include a blank option in a query based on
a combo box on a form
The form name is "frmSearchMethod" and the control
is "SCH1", what i would like the query criteria to based
on is if there is an item select from the combo box then
that is the criteria, if it is left blank, then the
criteria is "is null" to display all the blank items.
However using the following IIF's (below), it doesn't
bring back any records, but when using "is null" as the
criteria by itself i get 57. Does anyone have any
suggestions pleeease as to why i'm getting nothing back
Thank you
Phill
IIf([Forms]![frmSearchMethod]![SCH1].[value] Is Null,is
null,[Forms]![frmSearchMethod]![SCH1].[value])
IIf([Forms]![frmSearchMethod]![SCH1] = "",Null,[Forms]!
[frmSearchMethod]![SCH1].[value])
and the other 2 variations of this. None work!!!
a combo box on a form
The form name is "frmSearchMethod" and the control
is "SCH1", what i would like the query criteria to based
on is if there is an item select from the combo box then
that is the criteria, if it is left blank, then the
criteria is "is null" to display all the blank items.
However using the following IIF's (below), it doesn't
bring back any records, but when using "is null" as the
criteria by itself i get 57. Does anyone have any
suggestions pleeease as to why i'm getting nothing back
Thank you
Phill
IIf([Forms]![frmSearchMethod]![SCH1].[value] Is Null,is
null,[Forms]![frmSearchMethod]![SCH1].[value])
IIf([Forms]![frmSearchMethod]![SCH1] = "",Null,[Forms]!
[frmSearchMethod]![SCH1].[value])
and the other 2 variations of this. None work!!!