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  dBforums > PC based Database Applications > Microsoft Access > auto filter

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-04-04, 12:37
jor47 jor47 is offline
Registered User
 
Join Date: May 2004
Posts: 17
auto filter

What I really trying to do is automatically filter records when the form is opened. Any help?
Reply With Quote
  #2 (permalink)  
Old 06-04-04, 12:40
grrr223 grrr223 is offline
Registered User
 
Join Date: Feb 2004
Posts: 126
What criteria are you trying to filter on?
Reply With Quote
  #3 (permalink)  
Old 06-04-04, 12:42
jor47 jor47 is offline
Registered User
 
Join Date: May 2004
Posts: 17
The form has a combo box. The criteria is based on particular data in this combo box.
Reply With Quote
  #4 (permalink)  
Old 06-04-04, 12:48
grrr223 grrr223 is offline
Registered User
 
Join Date: Feb 2004
Posts: 126
Are you asking how to filter the form in general, or how to get it to be filtered when the form opens? If it is when it opens what default value are you trying to display?
Reply With Quote
  #5 (permalink)  
Old 06-04-04, 19:05
jor47 jor47 is offline
Registered User
 
Join Date: May 2004
Posts: 17
I am trying to get it filtered when the form opens. Basically, I have a combo box called Status. The data for that box is either open or complete. I only want to show the records that have a status of open.
Reply With Quote
  #6 (permalink)  
Old 06-05-04, 00:36
grrr223 grrr223 is offline
Registered User
 
Join Date: Feb 2004
Posts: 126
Okay cool, that makes sense.

Probably the easiest is to set the filter property for the form in its property box (also set the filteron property to true) and then in the combobox's After_update event, set it again to reflect the selection in the combobox, something like Me.filter = cboStatus (I think that works).

What goes into the filter property is the where clause of a query but without the word where, something like:
status = "open"

Good Luck!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On