Help with Filtering

M_Mike

Registered User.
Local time
Today, 16:00
Joined
Aug 10, 2005
Messages
31
I want to filter the information displayed on a form using the values I select in text or combo boxes.

I want to filter the form using one or more of the following options.
Call Ref - text box
Location No - Combo box
Area - combo box
Status - combo box

The combo boxes are taking their values from other tables within the database.

Can anyone help me develop the code needed to filter the form.

Thanks
 
That looks like exactly what I need. I'll try it as see if it works.

Thanks again.
 
I have entered the code into the database but when I click the apply filter button I receive the following error message: Run-Time error '2001': You canceled the previous operation. :confused:

I am unsure as to how to correct this but the problem seems to occur at the point when the filter is applied using the code below:

With Forms![frmFault]
.Filter = strFilter
.FilterOn = True
End With

I would appreciate any help or suggestions.
Thanks
 
There doesn't appear to be anything wrong with the code you've posted. Is the form open? Can you post the rest of the code? Have you tried debuging and seeing where the actual error was occuring?
 

Users who are viewing this thread

Back
Top Bottom