Hello,
I am trying to do the following:
- use a text box to type in e.g., smi and have a filtered query run and display all names starting with smi
- I have a list box below the text box that has a full queury of all records. So the text i type in the text ox above needs to be captured and filtered. Below is the filter query which isnt working...I am not sure of the syntax with the LIKE command and single/double quotes/percent/astericks..etc. Any help would be greatly appreciate.
strFilteredList = "SELECT [Employee Info].[Last Name], [Employee Info].[First Name] FROM [Employee Info] WHERE [Employee Info].[Last Name]] LIKE '" & Me.txtSearch.Value & "%" ORDER BY [Employee Info].[Last Name];
I am trying to do the following:
- use a text box to type in e.g., smi and have a filtered query run and display all names starting with smi
- I have a list box below the text box that has a full queury of all records. So the text i type in the text ox above needs to be captured and filtered. Below is the filter query which isnt working...I am not sure of the syntax with the LIKE command and single/double quotes/percent/astericks..etc. Any help would be greatly appreciate.
strFilteredList = "SELECT [Employee Info].[Last Name], [Employee Info].[First Name] FROM [Employee Info] WHERE [Employee Info].[Last Name]] LIKE '" & Me.txtSearch.Value & "%" ORDER BY [Employee Info].[Last Name];