how completely clear filter

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum 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

resolvedResolved · 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.


 

Access tip:

Create own ribbon tab - Access 2010

a. In Access click on the File tab
b. Select Options from left hand side
c. Choose the Customize Ribbon section
d. Click the New Tab button (below the list of tabs on the right hand side of the dialog box)
e. Select the New Tab (Custom) and enter a name, by clicking the Rename button (below the list of tabs on the right hand side of the dialog box)
f. Select the New Group (Custom) and enter a name, by clicking the Rename button (below the list of tabs on the right hand side of the dialog box)
g. Add commands to your tab and group by locating them on the list on the right hand side (remembering that you can change the list using the drop down box at the top of the list of commands) and clicking the Add button between the two panes to add them to your tab and group
h. You can rearrange the commands in your group, the groups on any tab or the tabs, using the up and down arrow buttons beside the list of tabs.
i. Click OK to apply your changes

View all Access hints and tips


Server loaded in 0.08 secs.