Maybe someone here can help me out. A simple search, but somethings wrong.
This search works, but only for exact entries. I cant seem to get it to work for partial searches.
Simply, when I use this here, I get a working filter. But I need to know the exact spelling of the Company name. How do I make it to where I can type in "ompa" instead of "Company" to get a list of results?
*****************************
Private Sub Command58_Click()
On Error GoTo Err_Command58_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmCompanyInfo"
stLinkCriteria = "[strCity]=" & "'" & Me![Text56] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Command58_Click:
Exit Sub
This search works, but only for exact entries. I cant seem to get it to work for partial searches.
Simply, when I use this here, I get a working filter. But I need to know the exact spelling of the Company name. How do I make it to where I can type in "ompa" instead of "Company" to get a list of results?
*****************************
Private Sub Command58_Click()
On Error GoTo Err_Command58_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmCompanyInfo"
stLinkCriteria = "[strCity]=" & "'" & Me![Text56] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Command58_Click:
Exit Sub