Group:  Microsoft Access » microsoft.public.access.formscoding
Thread: form filter

Geek News

form filter
richaluft[ at ]cs.com 12/6/2008 10:17:09 AM
Anyone know in what form event a form filter gets applied?
Thanks
RL
Re: form filter
"Allen Browne" <AllenBrowne[ at ]SeeSig.Invalid> 12/6/2008 11:55:14 AM
<richaluft[ at ]cs.com> wrote in message
news:3381ab6c-523c-4d67-bd60-1724faab2c83[ at ]g38g2000yqn.googlegroups.com...
[Quoted Text]
> Anyone know in what form event a form filter gets applied?

Forms have an OnFilter event that Access is supposed to trigger when a
filter is applied.

But that could be triggered by other events (e.g. the Click event procedure
of a command button where you have written code that applies a filter), or
no no event (e.g. user clicks Filter By Selection on the toolbar/ribbon.)

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

Re: form filter
richaluft[ at ]cs.com 12/6/2008 1:53:27 PM
On Dec 6, 6:55 am, "Allen Browne" <AllenBro...[ at ]SeeSig.Invalid> wrote:
[Quoted Text]
> <richal...[ at ]cs.com> wrote in message
>
>  news:3381ab6c-523c-4d67-bd60-1724faab2c83[ at ]g38g2000yqn.googlegroups.com....
>
> > Anyone know in what form event a form filter gets applied?
>
> Forms have an OnFilter event that Access is supposed to trigger when a
> filter is applied.
>
> But that could be triggered by other events (e.g. the Click event procedure
> of a command button where you have written code that applies a filter), or
> no no event (e.g. user clicks Filter By Selection on the toolbar/ribbon.)
>
> --
> Allen Browne - Microsoft MVP.  Perth, Western Australia
> Tips for Access users -http://allenbrowne.com/tips.html
> Reply to group, rather than allenbrowne at mvps dot org.

Allen;
Not quite my question: let me try to clarify question.
There is a Filter property for a form, located on the property sheet
'data' tab for the (any) form. My question has to due with which form
event (eg: open --> load --> resize --> activate --> current) such a
filter would be applied. My reason for knowing this has to do with
the second part of my question (which you also tried to answer)
because I would like to be able to call that event from a 'new record'
cmdbtn on the same form, so that the filter will be reapplied to the
form for the new record to be entered.
I hope that this helps clarify my question(s).
RL
Re: form filter
richaluft[ at ]cs.com 12/6/2008 3:05:48 PM
On Dec 6, 6:55 am, "Allen Browne" <AllenBro...[ at ]SeeSig.Invalid> wrote:
[Quoted Text]
> <richal...[ at ]cs.com> wrote in message
>
>  news:3381ab6c-523c-4d67-bd60-1724faab2c83[ at ]g38g2000yqn.googlegroups.com....
>
> > Anyone know in what form event a form filter gets applied?
>
> Forms have an OnFilter event that Access is supposed to trigger when a
> filter is applied.
>
> But that could be triggered by other events (e.g. the Click event procedure
> of a command button where you have written code that applies a filter), or
> no no event (e.g. user clicks Filter By Selection on the toolbar/ribbon.)
>
> --
> Allen Browne - Microsoft MVP.  Perth, Western Australia
> Tips for Access users -http://allenbrowne.com/tips.html
> Reply to group, rather than allenbrowne at mvps dot org.

Allen;
Thanks for your response.
I now realized that I am not asking the correct question for the
problem I'm having. Will submit new (and more appropriate question.
RL

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net