mrrayj60
Registered User.
- Local time
- Today, 14:51
- Joined
- Sep 3, 2009
- Messages
- 103
My screen lets the user type in a name to find residents but they want it to be a closer exact. Now if your type James you'll get people with the first name of James included but they just want the last name. The field is last, first. Thanks, Ray
Private Sub txtSearchReg_Change()
Dim strFilter As String
strFilter = "[name] Like " & Chr(34) & "*" & Me.txtSearchReg.Text & "*" & Chr(34)
Me.frmresname2.Form.Filter = ""
Me.frmresname2.Form.Filter = strFilter
Me.frmresname2.Form.FilterOn = True
End Sub
Private Sub txtSearchReg_Change()
Dim strFilter As String
strFilter = "[name] Like " & Chr(34) & "*" & Me.txtSearchReg.Text & "*" & Chr(34)
Me.frmresname2.Form.Filter = ""
Me.frmresname2.Form.Filter = strFilter
Me.frmresname2.Form.FilterOn = True
End Sub