I created a search form as well as an option box. My options in the box are: All, Item Type, and Model. If the option All is selected, I essentially want it to act as if no filter was selected. While if Item or Model is selected, I want to search through their respective columns.
My current code is:
Private Sub Frame11_AfterUpdate()
Select Case Frame11
Case 1 ' All
Me.Filter = ""
Me.FilterOn = False
Case 2 ' Item Type
Me.Filter = "Item Type = 'Item Type'"
Me.FilterOn = True
Case 3 ' Model
Me.Filter = "Model = 'Item Type'"
Me.FilterOn = True
End Select
At my current stage, the option group does not work at all. When I select Item Type or Model, it doesn't search in their respective columns, it search throughout every column (which is only what I want to happen when All is selected)
Could anyone help on this?