?
Solved

Remove filter/sort

Posted on 2000-04-03
6
Medium Priority
?
1,088 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
Technology Partners: 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
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.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

850 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