I have a form that looks at a bunch of customer complaints one at a time. I've got a button that allows the user to input a 'ComplaintNumber' so that they can go right to a certain complaint if needed. The issue is that it filters down to just that complaint. It'd be more useful if it only went to that complaint without filtering away the rest. I looked online for a solution but the only guides I could find were ones that filter. If anyone has any guidance or guides, that'd be awesome. Below is the code for the button that I'm currently using.
Code:Private Sub btnSearchComplaintNumber_Click() Dim S As String S = InputBox("Enter the Complaint Number", "Complaint Number Search") If S = "" Then Exit Sub Me.Filter = "ComplaintNumber = " & S Me.FilterOn = True End Sub