I have combed the forum about filtering by selection but have not been able to make this work. I have and unbound cbo box "CatFilter" in the header that I want to select and filter on the value in a field in the form that is also a cbo box "CategoryID" (CategoryID is the Bound column of the combo and CategoryName is the viewed column). The form is based the Products Tbl and the cbo field is a qry of the Category Tbl. The code that I got from and Access book is below and does not seem to work. I get an error on the Me.Filter= line. Any help would be appreciated
TbLPartyProducts
ProductID PK
CategoryID FK
ProductName FLD
TblProductCategory
CategoryID PK
CategoryName FLD
Private Sub CatFilter_AfterUpdate()
Me.FilterOn = True
Me.Filter = "CategoryID = " & Me.CatFilter
End Sub