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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

filter a form on open ?



 
 
Thread Tools Display Modes
  #1  
Old November 1st, 2006, 11:56 PM posted to microsoft.public.access.forms
Brook
external usenet poster
 
Posts: 26
Default filter a form on open ?

good day,

i'm trying to open a form and filter the records based on a check box upon
opening the form...

I know this should be easy, but my mind has run blank..

Can anyone help me?

Thanks,
  #2  
Old November 2nd, 2006, 12:01 AM posted to microsoft.public.access.forms
Damian S
external usenet poster
 
Posts: 741
Default filter a form on open ?

Hi Brook,

If it's based on a check box, you might want to consider using an On Current
event (if the check box will change each time the record changes)... Either
way, the code is the same...

Either in the On Current or On Open event (depending on which one is
appropriate for you) put:

me.filter = FILTER
me.filteron = true

where FILTER is the filter you require, eg: "[Surname] like '*smith*'"

Damian.

"Brook" wrote:

good day,

i'm trying to open a form and filter the records based on a check box upon
opening the form...

I know this should be easy, but my mind has run blank..

Can anyone help me?

Thanks,

  #3  
Old November 2nd, 2006, 12:17 AM posted to microsoft.public.access.forms
Brook
external usenet poster
 
Posts: 26
Default filter a form on open ?

Hello...

thank you...

That is what I was looking for!

Brook

"Damian S" wrote:

Hi Brook,

If it's based on a check box, you might want to consider using an On Current
event (if the check box will change each time the record changes)... Either
way, the code is the same...

Either in the On Current or On Open event (depending on which one is
appropriate for you) put:

me.filter = FILTER
me.filteron = true

where FILTER is the filter you require, eg: "[Surname] like '*smith*'"

Damian.

"Brook" wrote:

good day,

i'm trying to open a form and filter the records based on a check box upon
opening the form...

I know this should be easy, but my mind has run blank..

Can anyone help me?

Thanks,

 




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 09:21 AM.


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