Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Filter not working on Form bound to a Query

Status
Not open for further replies.

mystuff

Programmer
Apr 30, 2004
86
0
0
US
I have a form that is bound to a Query. When I type an "Employee Id" (for example the number 42) in the criteria of the query, it pulls up 1 record and the form shows the 1 record and it works fine.

But I when I try to use the Filter property, nothing happens ... I get ALL records (I do not get any error messages.)

In the properties of the form next to "Filter" I have:
EmployeeID = 42. I also tried to put quotes aournd it .. "EmployeeID = 42". (EmployeeID is a numeric field).

I also tried code using:
Me.Filter = "EmployeeID = 42"
Me.FilterOn = True

Still the form is not filtered.

Any ideas why?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top