Hi, I'm currently creating a database solution for a computer shop. Basically, I'm having issues with a filter I'm using so that a user can easily 'jump' to a certain record based on the ID (primary key). My issue is that I can enter an ID into the search field, press the 'Apply Filter' button, and it will jump to the correct job, but after pressing the 'Remove Filter' button which turns off the filter, trying to create a new filter fails. So it works once but not more.
The code running behind the buttons is:
Apply Filter
Remove Filter:
I have attached a small version of the database as I realise this could be confusing... Any help would be greatly appreciated
The code running behind the buttons is:
Apply Filter
Code:
Private Sub Command78_Click()
Me.Filter = "ID = Forms![Workshop_frm].[SearchBox].Value"
Me.FilterOn = True
End Sub
Remove Filter:
Code:
Private Sub Command79_Click()
Me.FilterOn = False
End Sub
I have attached a small version of the database as I realise this could be confusing... Any help would be greatly appreciated