?
Solved

Remove filter/sort

Posted on 2000-04-03
6
Medium Priority
?
1,084 Views
Last Modified: 2008-05-16
how would i write this in a function so it does what the remove filter/sort button in access does ... i need it to work exactly like it does in access
0
Comment
Question by:NEWJACK
[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
  • 2
  • 2
6 Comments
 
LVL 4

Expert Comment

by:abaldwin
ID: 2681470
Are you saying that you have a report or some other container that displays with a filter and you want to remove that filter in code??????

I am not sure that I understand your question.

Andy
0
 
LVL 4

Expert Comment

by:abaldwin
ID: 2681471
Are you saying that you have a report or some other container that displays with a filter and you want to remove that filter in code??????

I am not sure that I understand your question.

Andy
0
 

Author Comment

by:NEWJACK
ID: 2681479
i have a form that pulls from a table ... i have the table filtered to bring back information in a certain manner ... the user is going to update the records from this form and the only button that seems to update and filter the table after changer have been made is the remove filter/sort button on the menu bar ... i would like to have a command button on the form that does the same.
0
Independent Software Vendors: 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!

 
LVL 14

Accepted Solution

by:
mgrattan earned 64 total points
ID: 2682057
In your command button you could issue the following code:

DoCmd.ShowAllRecords

This will remove the filter/sort.  Or, you can do this:

Me.Filter = ""
Me.FilterOn = False

To set another filter do this:

Me.Filter = "[FieldName] = 'Criteria'"
Me.FilterOn = True



0
 

Author Comment

by:NEWJACK
ID: 2683631
This works great thanks a million ... Felix
0
 
LVL 14

Expert Comment

by:mgrattan
ID: 2684221
Felix,

glad I could help out.

Mike
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
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.

650 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