Form Filters (1 Viewer)

paulmcdonnell

Ready to Help
Local time
Today, 13:20
Joined
Apr 11, 2001
Messages
167
Hi guys,

I want to apply a filter to my form depending on the value of a text box..
Sounds simple but I'm not sure of the code ...Any heros out there know?

Many thanks
Paul
 

Jon Holmes

Banned
Local time
Today, 13:20
Joined
May 16, 2001
Messages
25
Paul,
Attached to the After Update event of the textbox defining the filter would be the statement;
Me.Filter = "Filter_Field = '" & Me.txt_Filter & "'"
The example above is for a text search.
Attach the line
Me.FilterOn = True
to the Form's Open event.
Jon
 

Users who are viewing this thread

Top Bottom