G
Guest
I have a form that displays data from its bound table. In the footer of the
form I have two comboboxes whose contents mirror two comboboxes on the main
form. Using:
Me.Filter = "[Field1] = '" & cmbobox1 & "'"
Me.FilterOn = True
in the AfterUpdate Event of Combobox1 I can filter the records accordingly.
If I use the same code (except calling "Field2" and using "cmbobox2" in the
AfterUpdate Event of Combobox2) I can perform a second different filter.
What I would like to be able to do is to filter on Field1 and then using
this as the new dataset, Filter on Field2 to further refine the Filtering,
(and so on if required).
I can do it with a From on a parameter query but this requires the operator
to remember the enteries required for Field1 and Field2, whereas this Filter
method allows them to select from the comboboxes.
Appreciate any suggestions,
Ian.
form I have two comboboxes whose contents mirror two comboboxes on the main
form. Using:
Me.Filter = "[Field1] = '" & cmbobox1 & "'"
Me.FilterOn = True
in the AfterUpdate Event of Combobox1 I can filter the records accordingly.
If I use the same code (except calling "Field2" and using "cmbobox2" in the
AfterUpdate Event of Combobox2) I can perform a second different filter.
What I would like to be able to do is to filter on Field1 and then using
this as the new dataset, Filter on Field2 to further refine the Filtering,
(and so on if required).
I can do it with a From on a parameter query but this requires the operator
to remember the enteries required for Field1 and Field2, whereas this Filter
method allows them to select from the comboboxes.
Appreciate any suggestions,
Ian.