I have a form that uses a text box and combo box to filter a list box. When I use the combo box to filter the data the list box does not unfilter when I click my clear button. If I use the text box it does. The listbox is created from a query. The code for the button is below. The name of the list box is SearchResults.
Code:
Private Sub BtnClearFilter_Click()
Me.SearchFor = ""
Me.SrchText = ""
Me.CboSource.Value = Null
Me.CboSourcePart.Value = Null
Me.SearchResults = Me.SearchResults.ItemData(1)
Me.SearchFor.SetFocus
Me.SearchResults.Requery
End Sub
Comment