Solved

Use Built in Filters Access Form

Posted on 2014-02-20
3
315 Views
Last Modified: 2014-02-20
Hi, i would like to know if its possible to call the built-in filters which access uses for tables  \queries for forms
0
Comment
Question by:yidel718
[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 20

Accepted Solution

by:
GrahamMandeno earned 500 total points
ID: 39875303
I'm not sure what you mean by "call the built-in filters".  Do you mean the drop-down filters in the header cells of a datasheet view?  And you want to "call" them from VBA code?

I don't think you can do this, and it makes no sense to do it.  This filter selection mechanism is part of the user interface and requires the user to make choices.  It makes no sense to automate it from code.

Of course, you can do a similar thing through code by setting the form filter - for example:
    Me.Filter = "[DateField]>=DateSerial(Year(Date(), 1, 1)"
    Me.FilterOn = True ' show this year's records only

Open in new window

Best wishes,
Graham Mandeno [Access MVP 1996-2014]
0
 
LVL 1

Author Comment

by:yidel718
ID: 39875312
Got you, i were just lazzzzy to built one myself !
thanks
0
 
LVL 20

Expert Comment

by:GrahamMandeno
ID: 39875423
LOL!  Glad to help :-)
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
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 …

632 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