Question : Filter form via dropdown menu

I have a form (well a series of forms but I will start with just one) that contains records. One of the fields of the records is a status one. The actual field is based off its own table. What I want to do is have a dropdown menu in the header of the form (a multirecord form) that will filter it based on the selection in the drop down menu. An option to clear the filter would be nice as well.

I know that I can do this from the controls in Access but I would really like this functionality so the end user for the database has that option.

Answer : Filter form via dropdown menu

on change event of the combo box

me.filter="Status=" & me.MyCombo
me.filteron = true

and create a button to clear, and in onclick do this

me.filteron = false
Random Solutions  
 
programming4us programming4us