R
Richard
Hi all,
Im trying to fliter my form using a unbound textbox and a command button. If
the user inputs a partial string or exact string, either way i want the
results to filter.
Private Sub cmdPhoneNumber_Click()
' Find the record that matches the control.
Dim stFilter As String
Me.FilterOn = False
stFilter = [Phone] Like "*" & Me.txtPhoneNumber & "*"
Me.Filter = stFilter
Me.FilterOn = True
End Sub
I can't seem to get this to filter correctly.
Richard
Im trying to fliter my form using a unbound textbox and a command button. If
the user inputs a partial string or exact string, either way i want the
results to filter.
Private Sub cmdPhoneNumber_Click()
' Find the record that matches the control.
Dim stFilter As String
Me.FilterOn = False
stFilter = [Phone] Like "*" & Me.txtPhoneNumber & "*"
Me.Filter = stFilter
Me.FilterOn = True
End Sub
I can't seem to get this to filter correctly.
Richard