473,385 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Clear filters

Hello all.

I am trying to avoid my users from saving filters. The fact is that
after they use or change a filter, when closing the form Access would
ask: "Do you want to save changes to the design of form?" and save the
new filter.

I've tried using Me.Filter = "" in the unload event, but Access asks
and saves BEFORE getting to the unload, and it saves the filter before
I clear it.

Also tried setting the property "Allow design changes" to "Design view
only" but functionality remains the same: users CAN change the design
(filters in this case) to the form, so it seems the property doesn't
work as intended.

I don't want to write code in a button as has been suggested to clear
the QBF grid, I just want to avoid saving the filters and being
prompted to save the form, which confuses them.

Would be glad to hear any suggestions from you.

TIA,

Nov 13 '05 #1
4 11266
jv
Perhaps you should disable the form's control box and close button.
Then add a close command button to the form. In the onclick event of
the button, put: DoCmd.Close , , acSaveNo

There is probably better solutions but this is the first one to my
mind.

Nov 13 '05 #2
Yeah, that is what I am up to, but didn't want to add a new button to
an already crowded form.

Thanks.

Nov 13 '05 #3
"Aaron" <ar********@yahoo.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Hello all.

I am trying to avoid my users from saving filters. The fact is that
after they use or change a filter, when closing the form Access would
ask: "Do you want to save changes to the design of form?" and save the
new filter.

I've tried using Me.Filter = "" in the unload event, but Access asks
and saves BEFORE getting to the unload, and it saves the filter before
I clear it.

Also tried setting the property "Allow design changes" to "Design view
only" but functionality remains the same: users CAN change the design
(filters in this case) to the form, so it seems the property doesn't
work as intended.

I don't want to write code in a button as has been suggested to clear
the QBF grid, I just want to avoid saving the filters and being
prompted to save the form, which confuses them.

Would be glad to hear any suggestions from you.

TIA,


Why not put Me.Filter="" in the form load event?
Fred Zuckerman
Nov 13 '05 #4
Thanks all for your replies.

I will stay with the Open or Load events cleaning the filter, and
adding a button to close and call DoCmd.Close acSaveNo.

I couldn't use the Close event because by the time the Unload or Close
get control, the form has already been saved with the filter.

Thanks again!

Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Aaron Straup Cope | last post by:
Hi, Included below is a copy of a message I sent to the py-tutor list. It didn't garner much in the way of a solution and it was suggested that this list might be helpful. Thanks, ...
18
by: Tim Mierzejewski | last post by:
How do I clear the text from my screen, other than a bunch of \n's or endl's? Tim M.
1
by: shumaker | last post by:
I'm trying to defeat persistant filters with the following code in Close, and also in Unload: Private Sub Form_Close() DoCmd.RunCommand acCmdRemoveFilterSort Me.FilterOn = False Me.OrderByOn =...
6
by: TJO | last post by:
Below is some sample code that fades div tags that is not working in IE 6.0.29 on xp sp2. Can anyone help see why the if(ie5) document.getElementById(divID).filters.alpha.opacity lines are not...
1
by: Dieter Vanderelst | last post by:
Hello, I'm trying to access the Filters-Dll provided by the filters-project (http://filters.sourceforge.net/index.htm). Following the advice I got from the Python list -thank you for that-, I...
0
by: kucol | last post by:
Hi guys, I wanted to ask you for help as I am struggling with it second evening already... I have got tables DEVICES and PARTS. One device can consist of multiple parts. But... I have...
2
by: brino | last post by:
hi all ! my client wants to bring out data into a report with a number of filters that are chosen by the user . eg. -Section -Days to search -Type of care ive never tried this before...
3
by: MOCaseA | last post by:
I have a record lookup form that has several combo box filters set up. However I noticed a slight problem. The filters are working correctly, but there are now over 2000 entries and when filtering...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.