98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Access Training and help » How to completely clear a filter when in form view | Access forum
How to completely clear a filter when in form view | Access forum
Resolved · High Priority · Version 2007
Sarah has attended:
Access Introduction course
How to completely clear a filter when in form view
Hi,
I have a form which brings up a long list of company names - users need to be able to quickly find the company that they are looking for, however the exact name is rarely known. What I have done is to place buttons on this form with the aim to run filters as per the users request.
e.g.
Button "Find company name that starts with [letters]"
I have set this to run a macro which applies a filter such that it will ask you to: Enter first few letters
This is great and brings up exactly what we asked for - I have also placed a button with the action to "Remove all filters".
However, even having removed this filter so that all companies are once again visible, if the user then wants to look for another company with DIFFERENT starting letters, the Button no longer asks: "Enter first few letters" and automatically filters the form again to their previous input.
How can I resolve this?! at the moment I have taken the long way round and I have each button opening a new (almost identical) form which is based on that particular query. I really do not think that this is the best way and I would love for users to only have one Company Names form open which tends to all their search needs.
Thank you for your help!
RE: How to completely clear a filter when in form view
Dear Sarah
Thank you for attending Access Introduction Course!! I hope you enjoyed the course and benefited from it.
I personally think that you can achieve the same thing by using Parameter Query. This will eliminate the resetting of the filters, etc...
We do cover Parameter Queries in our Intermediate course but I'll give you some instructions for creating a parameter query.
You can create a normal query and download all the fields that you wish the users to see in the "Company Name" field you can type the following in the criteria box:
Like [Enter first few letters of the Company] & "*"
This will provide you the same results.
After creating the query you can simply create a form based on it.
Please find the below link to see what other topics our Access Intermediate course covers and also the schedule:
https://www.stl-training.co.uk/access-2007-intermediate.php
I hope this has answered your query.
If this has answered your query then I would request you to please mark the question as resolved!! If not and you have a specific question related to this then please post it as a new question and we should be able to provide you the solution for it!!
Kindest Regards
Rajeev Rawat
MOS Master Instructor 2000 and 2003
MCAS Master Instructor 2007
Mon 9 Feb 2009: Automatically marked as resolved.
Training information:
See also:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Access tip:Create own ribbon tab - Access 2010a. In Access click on the File tab |