?
Solved

Filter form via dropdown menu

Posted on 2009-04-12
3
Medium Priority
?
1,049 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
SimonThompson earned 2000 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Suggested Courses

800 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