A
alex
Hello all,
Using Access ’03…
I have a form with three unbound combo boxes. Under them is a subform
based on a query.
I’m trying to filter the subform based on the value of a combo box or
combination of combo boxes. I cannot (I think) set the child/master
fields of the subform to a combo box, because it would be too
restrictive (if I had only one combo box this would work).
So, e.g.; the form opens and the user sees three combo boxes and the
subform in datasheet view with about 5000 records.
The user can select a value in the first combo box (which is ByPerson)
to limit the results to a particular person. The user can then select
a value from the second combo box (which is ByCase) to limit even
further, etc... The combo boxes, however, should run independent of
each other.
I thought I found some code in this group to apply and manipulate a
filter with the combo box value. I could only get one of them to work
and for the life of me; I could not programmatically clear the filter
with VBA. I tried everything:
Me.filter = “”
Me.filter = “’’”
Docmd…
Nothing worked! The filter never cleared from the properties.
Any suggestions would be appreciated.
alex
Using Access ’03…
I have a form with three unbound combo boxes. Under them is a subform
based on a query.
I’m trying to filter the subform based on the value of a combo box or
combination of combo boxes. I cannot (I think) set the child/master
fields of the subform to a combo box, because it would be too
restrictive (if I had only one combo box this would work).
So, e.g.; the form opens and the user sees three combo boxes and the
subform in datasheet view with about 5000 records.
The user can select a value in the first combo box (which is ByPerson)
to limit the results to a particular person. The user can then select
a value from the second combo box (which is ByCase) to limit even
further, etc... The combo boxes, however, should run independent of
each other.
I thought I found some code in this group to apply and manipulate a
filter with the combo box value. I could only get one of them to work
and for the life of me; I could not programmatically clear the filter
with VBA. I tried everything:
Me.filter = “”
Me.filter = “’’”
Docmd…
Nothing worked! The filter never cleared from the properties.
Any suggestions would be appreciated.
alex