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

Apply a filter to a form onopen

Status
Not open for further replies.

MrMode

Technical User
Aug 28, 2003
195
GB
I am trying to apply a filter to a form onopen but struggling.

I have a yes/no field and I want the form to open and only show those records where the field is empty (0).

Can anyone help?
 
What code have you tried so far? i.e.

DoCmd.ApplyFilter [fieldname] = False

There's a good example in the Litwin, Getz Access Desktop programming book.
 
I have tried the following:

DoCmd.ApplyFilter , client.clientwin = False
DoCmd.ApplyFilter , client.clientwin = 0
DoCmd.ApplyFilter , client.clientwin like 0

?!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top