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, 4 11057
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.
Yeah, that is what I am up to, but didn't want to add a new button to
an already crowded form.
Thanks.
"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
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! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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,
...
|
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.
|
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 =...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: Naresh1 |
last post by:
What is WebLogic Admin Training?
WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
|
by: antdb |
last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine
In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
|
by: Oralloy |
last post by:
Hello Folks,
I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA.
My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
|
by: Rahul1995seven |
last post by:
Introduction:
In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
|
by: Ricardo de Mila |
last post by:
Dear people, good afternoon...
I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control.
Than I need to discover what...
|
by: Johno34 |
last post by:
I have this click event on my form. It speaks to a Datasheet Subform
Private Sub Command260_Click()
Dim r As DAO.Recordset
Set r = Form_frmABCD.Form.RecordsetClone
r.MoveFirst
Do
If...
|
by: ezappsrUS |
last post by:
Hi,
I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
|
by: jack2019x |
last post by:
hello, Is there code or static lib for hook swapchain present?
I wanna hook dxgi swapchain present for dx11 and dx9.
|
by: DizelArs |
last post by:
Hi all)
Faced with a problem, element.click() event doesn't work in Safari browser.
Tried various tricks like emulating touch event through a function:
let clickEvent = new Event('click', {...
| |