Any help would be greatly appreciated!
The following IIF statement almost works as I would like it to. However, it only filters the records which have data contained in the particular field For instance, (Criteria: "*"). I need it to show all records, for instance, (Criteria: Like "*" Or Is Null ), If the condition is false.
So, how could I include something like this [Like "*" Or Is Null] into the falsepart of anIIF statement?
Here is the IIF statement in question:
Like IIf([Forms]![QueryRunnerHWForm]![Combo7] Is Not Null Or ([Forms]![QueryRunnerHWForm]![Combo7])<>"",([Forms]![QueryRunnerHWForm]![Combo7]),"*")
To further explain: I have a form with a combo box with the name combo7. When the user selects from the combo box the subquery is filtered accordingly. However, if the combo box is blank or null the subquery display only record which actually contain data, and does not show records which do not contain data. I hope this is clear. Thanks in advance for the help.
[This message has been edited by lrAsIgo (edited 06-06-2002).]
The following IIF statement almost works as I would like it to. However, it only filters the records which have data contained in the particular field For instance, (Criteria: "*"). I need it to show all records, for instance, (Criteria: Like "*" Or Is Null ), If the condition is false.
So, how could I include something like this [Like "*" Or Is Null] into the falsepart of anIIF statement?
Here is the IIF statement in question:
Like IIf([Forms]![QueryRunnerHWForm]![Combo7] Is Not Null Or ([Forms]![QueryRunnerHWForm]![Combo7])<>"",([Forms]![QueryRunnerHWForm]![Combo7]),"*")
To further explain: I have a form with a combo box with the name combo7. When the user selects from the combo box the subquery is filtered accordingly. However, if the combo box is blank or null the subquery display only record which actually contain data, and does not show records which do not contain data. I hope this is clear. Thanks in advance for the help.
[This message has been edited by lrAsIgo (edited 06-06-2002).]