473,402 Members | 2,053 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,402 software developers and data experts.

OnApply Event doesn't act as documented

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Access 2002 & 2003. Windows XP Professional O/S.

According to the Access Help article "ApplyFilter Event" the
"...ApplyFilter event occurs when the user does one of the following:"

"Filter menu in the Filter window, or clicks Apply Filter on the
toolbar...." Yes, the event fires when this happens.

"Clicks Remove Filter/Sort on the Records menu in Form view, or clicks
Remove Filter on the toolbar...." No, the event doesn't fire when this
happens.

I've tested this in both Access 2002 & 2003 .mdb files. The same
results occurred in both versions.

Does anybody know if there is a fix or workaround that will allow the
code to "know" when the "Remove Filter/Sort" has occurred? An API
function, perhaps?
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQtgBVIechKqOuFEgEQKeUwCfSFg3nziebojN5m6iFRDTmR 3TztkAn1n9
TptFgwolKAjklD/PDH7hv3Pb
=nE0G
-----END PGP SIGNATURE-----
Nov 13 '05 #1
7 2546
On Fri, 15 Jul 2005 18:32:45 GMT, MGFoster <me@privacy.com> wrote:

That's not my experience. I added a debug.print to the OnApplyFilter
event in a form in the Northwind sample application, and it fires both
when filtering, and when unfiltering.
This is Access 2003 SP1 (build 6360) on Windows XP SP2

-Tom.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Access 2002 & 2003. Windows XP Professional O/S.

According to the Access Help article "ApplyFilter Event" the
"...ApplyFilter event occurs when the user does one of the following:"

"Filter menu in the Filter window, or clicks Apply Filter on the
toolbar...." Yes, the event fires when this happens.

"Clicks Remove Filter/Sort on the Records menu in Form view, or clicks
Remove Filter on the toolbar...." No, the event doesn't fire when this
happens.

I've tested this in both Access 2002 & 2003 .mdb files. The same
results occurred in both versions.

Does anybody know if there is a fix or workaround that will allow the
code to "know" when the "Remove Filter/Sort" has occurred? An API
function, perhaps?


Nov 13 '05 #2
On Fri, 15 Jul 2005 18:32:45 GMT, MGFoster <me@privacy.com> wrote:

That's not my experience. I added a debug.print to the OnApplyFilter
event in a form in the Northwind sample application, and it fires both
when filtering, and when unfiltering.
This is Access 2003 SP1 (build 6360) on Windows XP SP2

-Tom.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Access 2002 & 2003. Windows XP Professional O/S.

According to the Access Help article "ApplyFilter Event" the
"...ApplyFilter event occurs when the user does one of the following:"

"Filter menu in the Filter window, or clicks Apply Filter on the
toolbar...." Yes, the event fires when this happens.

"Clicks Remove Filter/Sort on the Records menu in Form view, or clicks
Remove Filter on the toolbar...." No, the event doesn't fire when this
happens.

I've tested this in both Access 2002 & 2003 .mdb files. The same
results occurred in both versions.

Does anybody know if there is a fix or workaround that will allow the
code to "know" when the "Remove Filter/Sort" has occurred? An API
function, perhaps?


Nov 13 '05 #3
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks for the response.

Access 2002 SP3.

I found that when the form is a datasheet and it is used as a subform,
the OnApplyFilter event fires when the filter is applied, but, when the
filter is removed the OnApplyFilter event doesn't fire. If the
datasheet is NOT a subform, the OnApplyFilter fires both when the filter
is applied & when it is removed. I used the same form both as a subform
and as a free-standing form to test the above. Looks like an
undocumented gotcha.

This still begs the question: How to get the Remove Filter part of the
OnApplyFilter event to be recognized by subforms? Since Access doesn't
do it, is there an API I can use?
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQtiUZoechKqOuFEgEQKv3wCgti+cQbfxuisSflm2pPY9kQ IrE/AAnjmA
TLVjKc9ADTYzBHpIjo9F1vHL
=I/jx
-----END PGP SIGNATURE-----

Tom van Stiphout wrote:
On Fri, 15 Jul 2005 18:32:45 GMT, MGFoster <me@privacy.com> wrote:

That's not my experience. I added a debug.print to the OnApplyFilter
event in a form in the Northwind sample application, and it fires both
when filtering, and when unfiltering.
This is Access 2003 SP1 (build 6360) on Windows XP SP2

-Tom.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Access 2002 & 2003. Windows XP Professional O/S.

According to the Access Help article "ApplyFilter Event" the
"...ApplyFilter event occurs when the user does one of the following:"

"Filter menu in the Filter window, or clicks Apply Filter on the
toolbar...." Yes, the event fires when this happens.

"Clicks Remove Filter/Sort on the Records menu in Form view, or clicks
Remove Filter on the toolbar...." No, the event doesn't fire when this
happens.

I've tested this in both Access 2002 & 2003 .mdb files. The same
results occurred in both versions.

Does anybody know if there is a fix or workaround that will allow the
code to "know" when the "Remove Filter/Sort" has occurred? An API
function, perhaps?


Nov 13 '05 #4
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks for the response.

Access 2002 SP3.

I found that when the form is a datasheet and it is used as a subform,
the OnApplyFilter event fires when the filter is applied, but, when the
filter is removed the OnApplyFilter event doesn't fire. If the
datasheet is NOT a subform, the OnApplyFilter fires both when the filter
is applied & when it is removed. I used the same form both as a subform
and as a free-standing form to test the above. Looks like an
undocumented gotcha.

This still begs the question: How to get the Remove Filter part of the
OnApplyFilter event to be recognized by subforms? Since Access doesn't
do it, is there an API I can use?
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQtiUZoechKqOuFEgEQKv3wCgti+cQbfxuisSflm2pPY9kQ IrE/AAnjmA
TLVjKc9ADTYzBHpIjo9F1vHL
=I/jx
-----END PGP SIGNATURE-----

Tom van Stiphout wrote:
On Fri, 15 Jul 2005 18:32:45 GMT, MGFoster <me@privacy.com> wrote:

That's not my experience. I added a debug.print to the OnApplyFilter
event in a form in the Northwind sample application, and it fires both
when filtering, and when unfiltering.
This is Access 2003 SP1 (build 6360) on Windows XP SP2

-Tom.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Access 2002 & 2003. Windows XP Professional O/S.

According to the Access Help article "ApplyFilter Event" the
"...ApplyFilter event occurs when the user does one of the following:"

"Filter menu in the Filter window, or clicks Apply Filter on the
toolbar...." Yes, the event fires when this happens.

"Clicks Remove Filter/Sort on the Records menu in Form view, or clicks
Remove Filter on the toolbar...." No, the event doesn't fire when this
happens.

I've tested this in both Access 2002 & 2003 .mdb files. The same
results occurred in both versions.

Does anybody know if there is a fix or workaround that will allow the
code to "know" when the "Remove Filter/Sort" has occurred? An API
function, perhaps?


Nov 13 '05 #5
MGFoster wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks for the response.

Access 2002 SP3.

I found that when the form is a datasheet and it is used as a subform,
the OnApplyFilter event fires when the filter is applied, but, when the
filter is removed the OnApplyFilter event doesn't fire. If the
datasheet is NOT a subform, the OnApplyFilter fires both when the filter
is applied & when it is removed. I used the same form both as a subform
and as a free-standing form to test the above. Looks like an
undocumented gotcha.

This still begs the question: How to get the Remove Filter part of the
OnApplyFilter event to be recognized by subforms? Since Access doesn't
do it, is there an API I can use?


Does the the subform have focus when it is pressed.

One suggestion is to create your own menu item and add it to the
menu/toolbar so it does what you want.
Nov 13 '05 #6
MGFoster wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks for the response.

Access 2002 SP3.

I found that when the form is a datasheet and it is used as a subform,
the OnApplyFilter event fires when the filter is applied, but, when the
filter is removed the OnApplyFilter event doesn't fire. If the
datasheet is NOT a subform, the OnApplyFilter fires both when the filter
is applied & when it is removed. I used the same form both as a subform
and as a free-standing form to test the above. Looks like an
undocumented gotcha.

This still begs the question: How to get the Remove Filter part of the
OnApplyFilter event to be recognized by subforms? Since Access doesn't
do it, is there an API I can use?


Does the the subform have focus when it is pressed.

One suggestion is to create your own menu item and add it to the
menu/toolbar so it does what you want.
Nov 13 '05 #7
Salad wrote:
MGFoster wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks for the response.

Access 2002 SP3.

I found that when the form is a datasheet and it is used as a subform,
the OnApplyFilter event fires when the filter is applied, but, when the
filter is removed the OnApplyFilter event doesn't fire. If the
datasheet is NOT a subform, the OnApplyFilter fires both when the filter
is applied & when it is removed. I used the same form both as a subform
and as a free-standing form to test the above. Looks like an
undocumented gotcha.

This still begs the question: How to get the Remove Filter part of the
OnApplyFilter event to be recognized by subforms? Since Access doesn't
do it, is there an API I can use?

Does the the subform have focus when it is pressed.

One suggestion is to create your own menu item and add it to the
menu/toolbar so it does what you want.


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Salad,
Do you mean create my own function for a toolbar? I had created a popup
menu to do the filter/remove filter, but used the built-in functions.

Seems a shame I can't use the built-in functions as documented - why re
invent the wheel when it supposed to already be there? It's a PITA.

Your suggestion is probably the way to go. Doesn't me I have to like it
;-).
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQtwKz4echKqOuFEgEQJeqwCfVZRgDz+zP/LowJq0/d7gYZ6Nv4UAoKfV
QVrJvvzCiN5IO5v+Ct1ac1uo
=1u3Q
-----END PGP SIGNATURE-----
Nov 13 '05 #8

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

Similar topics

1
by: Vegard Bakke | last post by:
From whet I can see, Python documentation is lacking a very important piece of information. Very few functions have documented what exceptions they raise, and under what cicumstances. Is this a...
2
by: Daniel Bickett | last post by:
Hello, I am writing an application using two event-driven libraries: wxPython, and twisted. The first problem I encountered in the program is the confliction between the two all-consuming...
2
by: Helmut Gardner | last post by:
Hi folks is it possible to let VB.NET call a specific handler, when a socket gets closed (either as a server, or as a client) Thank Helmut
17
by: mp | last post by:
Hi. I know I can use "window.print()" to print a page, but is there a way to catch a print event when someone prints a document from the browser? Thanks. mp
3
by: Lachlan Hunt | last post by:
Hi, I've been looking up lots of documentation and trying to work out a cross-platform method of capturing a keyboard event and working out which key was pressed. From what I can find, there...
2
by: bissatch | last post by:
Hi, I am trying to validate my website against XHTML 1.0 transitional. Unfortunetely it throws up an error because I have used javascript event onMouseOver <span onMouseOver="Swap_Image(... ...
7
by: Dave Hammond | last post by:
You'd think this was an occasionally asked question, but a search for previous related posts only turned up one from 1999, and that one was never anwered. So... When handling a keypress event,...
0
by: MGFoster | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Access 2002 & 2003. Windows XP Professional O/S. According to the Access Help article "ApplyFilter Event" the "...ApplyFilter event occurs when...
6
by: HillBilly | last post by:
One question I have not figured out is how to learn which event parameter list is supported by a control? EventArgs, CommandEventArgs, what?
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.