Filter Records based on Combo Box selection

  • Thread starter Thread starter CAT
  • Start date Start date
C

CAT

Can anyone tell me how to filter a form's records based on
an option chosen from a combo box?
 
This assumes you already have a combo box and the bound
field is numeric and it is also the primary key.

On the combox "AFTERUPDATE" event insert this code:

Me.RecordsetClone.FindFirst "[YourPrimaryKey] = " & Me!
[YourComboBox]
Me.Bookmark = Me.RecordsetClone.Bookmark
 
Back
Top