Filter OnOpen

J

John

I am trying filter records when the form is open. When I
read the heip files I am still confused. I have tried the
following:

Private Sub Form_Open(Cancel As Integer)

DoCmd.SelectObject acTable, "tblSalesOrders", True
DoCmd.ApplyFilter , "COM004StopDate = 'Null'"
(Runtime error 2488)

And

Me.Filter = "COM004StopDate = Null"
Me.Form.FilterOn = True

(Always filters all and goes to new record)

Thanks
John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top