Solved

Remove filter/sort

Posted on 2000-04-03
6
1,068 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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Suggested Solutions

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

840 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