G
Guest
1) I have a query on my form where one of the combo boxes is set as a
condition on one of the queries fields. In effect this allows to filter
records.
2) I have an iif statement in this condition iif(myCombo is null, my Field,
mycombo). In affect this will allow all records to be shown when the form is
opened. Once an option is selected from the combo it requeries and filter
correctly.
At this point I want to reset the combos so that they are empty. In other
words display all records.
I have tried the following code on the combo but it does not seem to work.
[Forms]![myform]![myControl] = Null
or
[Forms]![myform]![myControl] = "*"
Is Null not the same as empty. What am I missing
Bruce
condition on one of the queries fields. In effect this allows to filter
records.
2) I have an iif statement in this condition iif(myCombo is null, my Field,
mycombo). In affect this will allow all records to be shown when the form is
opened. Once an option is selected from the combo it requeries and filter
correctly.
At this point I want to reset the combos so that they are empty. In other
words display all records.
I have tried the following code on the combo but it does not seem to work.
[Forms]![myform]![myControl] = Null
or
[Forms]![myform]![myControl] = "*"
Is Null not the same as empty. What am I missing
Bruce