Solved

Filter form via dropdown menu

Posted on 2009-04-12
3
1,038 Views
Last Modified: 2013-11-28
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.
0
Comment
Question by:Greekiwi
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
SimonThompson earned 500 total points
ID: 24124959
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
0
 

Author Comment

by:Greekiwi
ID: 24125052
Thanks Simon. Seems very simple now that I think about it. But that's the benefit of this site I guess.
0
 
LVL 3

Expert Comment

by:SimonThompson
ID: 24125057
lol, we all do it mate, your welcome
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question