A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Determining whther the user is setting or removing the filter...



 
 
Thread Tools Display Modes
  #1  
Old June 8th, 2004, 05:47 PM
Brad Pears
external usenet poster
 
Posts: n/a
Default Determining whther the user is setting or removing the filter...

I have a form where I allow the use of "filter by form". I want to run some
code when the user removes the filter - but I have no way of knowing if they
are removing or setting the filter in the "apply filter" event. Is there an
easy way to tell whether the user just applied the filter (pushed the filter
button in) or has removed the filter (pushed the filter button the second
time) without having to keep track of a variable each time the user clicks
the filter button?

Thanks,

Brad


  #2  
Old June 9th, 2004, 04:29 PM
external usenet poster
 
Posts: n/a
Default Determining whther the user is setting or removing the filter...

I've found that you can check the ApplyType variable of
the ApplyFilter event. If the ApplyType =1 then the user
has just set a filter. Likewise, ApplyType will be 0
when the user removes the filter.

Hope this helps to solve your problem,
John Whitney

-----Original Message-----
I have a form where I allow the use of "filter by form".

I want to run some
code when the user removes the filter - but I have no

way of knowing if they
are removing or setting the filter in the "apply filter"

event. Is there an
easy way to tell whether the user just applied the

filter (pushed the filter
button in) or has removed the filter (pushed the filter

button the second
time) without having to keep track of a variable each

time the user clicks
the filter button?

Thanks,

Brad


.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:44 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.