Solved

Remove filter/sort

Posted on 2000-04-03
6
1,066 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
  • 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
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 14

Accepted Solution

by:
mgrattan earned 16 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
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…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

862 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now