I am trying to filter the records on a form by using a listbox
I have a listbox which when a record is selected is populates the select key field to a textbox
I then have the following code to apply the filter but I am getting a data type mismatch error
I have a listbox which when a record is selected is populates the select key field to a textbox
I then have the following code to apply the filter but I am getting a data type mismatch error
Code:
DoCmd.ApplyFilter , "ID = '" & txtSelectedRecord & "'"
Me.FilterOn = True