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 Mike Lewis 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

Status
Not open for further replies.

rry2k

Programmer
Jun 28, 2001
678
US
I'm trying to set a filter on a form at runtime. I tried using Me.Filter = "EmployeeID = 4" but it displays all records. After I get this test to work I'll need to set the filter to a value selected in a dropdown.

Thanks for the help..Russ
 
Hi Russ!

Did you set Me.FilterOn = True?

hth Jeff Bridgham
bridgham@purdue.edu
 
Not at first but I have it now.

Thanks..Russ
 
My filter seems close but I still have a bug.
When I use: Me.Filter = "[time card hours].EmployeeID = [Time Card Hours1].EmployeeID" It prompts me with a parm box asking for the [Time Card Hours1].EmployeeID. This is filled in as a result of a combobox selection that it's bound to.

I'm lost ..Thanks for the help..Russ
 
Hi Russ!

Try this:

Me.Filter = "[time card hours].EmployeeID = '" & [Time Card Hours1].EmployeeID & "'"

hth Jeff Bridgham
bridgham@purdue.edu
 
Jeff,

I got an error 2465 that said "Can't find the field '|' refered to in your expression.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top