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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top