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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

filtering main form...

Status
Not open for further replies.

marduk813

Programmer
Jul 18, 2002
89
US
I would like to be able to filter my main form upon opening. The table for this form contains a Yes/No field called "Deleted". I have set the Filter property of my form to:

Code:
Tables![Case Data]!Deleted = No

but it still displays all records (even though I have marked 6 as deleted). I will actually need to do this on many of my forms, so as soon as I can get one to work, I can make the others follow suit.

Any suggestions?
 
Oy. Nevermind, I fixed it. I don't know why I couldn't get the Filter property of the form to work correctly, but I just set up a filter in the VB code like:

Code:
Me.Filter = "Deleted = No"
Me.FilterOn = True

This did exactly what I needed. Thanks me! (and thanks to anyone who was going to reply!)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top