Hi, I need help regarding partial search. Currently i have a textbox named txtSite and when i press enter, it retrieves records from the table "ServiceRec" whereby the value for "SiteAddress" = the value typed in "txtSite". It works fine but i want the user to be able to search for records even if they do not type the address in full.
Currently, my code is as follows:
- Private Sub txtSite_Enter()
-
-
Dim strSql As String
-
-
strSql = "Select * From ServiceRec Where SiteAddress = '" & Me!txtSite & "'"
-
Me.ServiceRecSubform.Form.RecordSource = strSql
-
-
ServiceRecSubform.Visible = True
-
info1Subform.Visible = False
-
-
-
End Sub
How should i edit the code? Thanks