G
Guest
I wish to filter the records in a form firstly by the "date" field, then by
the "depot number" field. I can filter the form by depot number on its own
but not by the date on it's own & certainly not by both!
The code for the depot filter is as follows:
Private Sub DepotFilter_AfterUpdate()
Me.Filter = "[Depot] = '" & DepotFilter & "'"
Me.FilterOn = True
Me.Form.Requery
End Sub
The same code does not work for the date field (I presume for data type
reasons).
Can anyone help?
the "depot number" field. I can filter the form by depot number on its own
but not by the date on it's own & certainly not by both!
The code for the depot filter is as follows:
Private Sub DepotFilter_AfterUpdate()
Me.Filter = "[Depot] = '" & DepotFilter & "'"
Me.FilterOn = True
Me.Form.Requery
End Sub
The same code does not work for the date field (I presume for data type
reasons).
Can anyone help?