I built a form with combo boxes that will be used to filter data in a subform. The main form is unbound and the combo boxes use select statements to pull values from the appropriate tables. Each combo box has an afterupdate event like:
This form works as I want it to. You can select values in multiple combo boxes and it allows the user to build their filter slowly.
However, when I went to make another form and created in the same way it doesn't work the same. When I select values in a combo box it replaces the old filter instead of adding to it. I've been looking through my properties trying to figure out if something is different but I can't seem to find what it is.
Code:
Me![frmTechAIT].Form.Filter = "((Location = " & Chr(34) & Me.Location & Chr(34) & "))"
Me![frmTechAIT].Form.FilterOn = True
This form works as I want it to. You can select values in multiple combo boxes and it allows the user to build their filter slowly.
However, when I went to make another form and created in the same way it doesn't work the same. When I select values in a combo box it replaces the old filter instead of adding to it. I've been looking through my properties trying to figure out if something is different but I can't seem to find what it is.