Further question on being able to save a filter

J

john.constantine

If a user filters a form by placing the curser in a field and picking
various right mouse options
eg filter by selection, filter by exclusion, enters a string and wild
card, acending or descending sort or whatever

Can this filter be saved ?
So that if the database is closed and reopened its display will be
that of the last filter ?
or can a button be created on the form that will display the last
filter if required?
 
T

Tom Wickerath

Hi John,

Personally, I have found the built-in Query by Form (QBF) in Access to be
rather confusing, especially for users that you may need to support. I have
some QBF samples available that you might want to have a look at:

http://www.accessmvp.com/TWickerath/downloads/customdialogbox.zip

If you are okay with using some Visual Basic for Applications (VBA) code,
the samples get even better:

http://www.accessmvp.com/TWickerath/downloads/elements.zip

http://www.accessmvp.com/TWickerath/downloads/Chap08QBF.zip

The first one shown above, Elements.zip, is about as easy as they get. Here,
I have shown just a single multi-select list box control, to allow one to
select one or more elements from the periodic table in the list. Hey, I'm a
chemist, so this example was natural for me! Anyway, you can make a
continuous selection by holding down the Shift key, or a discontinuous
selection by using the Control key.

The Chap08QBF sample is the basis for all of my QBF forms. This sample came
from Scott Barker's book titled "Access 2000 Power Programming". It includes
the original form/subform, as well as my modifications to these two forms.

If you'd like to learn how these work, I have a Word document and sample
Access database available here:

http://www.seattleaccess.org/downloads.htm

Look for:
Query By Form - Multi Select
Tom Wickerath, February 12, 2008

If you are new to VBA code, then your first stop should be to check out
these two documents:

http://www.seattleaccess.org/downloads.htm
DAO - Back To Basics Compilation/Demo
by Tom Wickerath, Jan/Feb 2007

and

Access Basics by Crystal
http://www.accessmvp.com/Strive4Peace/Index.htm


Tom Wickerath
Microsoft Access MVP
http://www.accessmvp.com/TWickerath/
http://www.access.qbuilt.com/html/expert_contributors.html
__________________________________________
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top