How do I filter a data*** using VBA?
- From: "rupertsland" <rupertsland@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 11 Jul 2005 10:43:02 -0700
Greetings.
I'm trying to write a VBA procedure to apply a filter to a form when it is
opened by a user. I only want to filter on one field. In this case, PROJ_ID =
6000. Sounds simple. The coding I tried to use, unsuccessfully, was:
Private Sub Form_Open(Cancel As Integer)
Me.OnFilter = "[PROJ_ID]='6000'"
End Sub
I've also tried...
Private Sub Form_Open(Cancel As Integer)
Me.Filter = "[PROJ_ID]='6000'"
End Sub
Instead, I still see all projects listed in the data***. What am I doing
wrong and what code should I use to filter out just the one project?
Sincerely,
Dirk
North/South Consultants Inc.
Winnipeg, Canada
.
- Follow-Ups:
- RE: How do I filter a data*** using VBA?
- From: Ofer
- RE: How do I filter a data*** using VBA?
- Prev by Date: Re: Visible/Invisible textboxes on a form - done by record
- Next by Date: Re: How to get report not to run on No Data
- Previous by thread: Reserved Words
- Next by thread: RE: How do I filter a data*** using VBA?
- Index(es):