Good day everyone
I am trying to use LIKE operator in a query to find any similarities for a word entered into a parameter. To make my idea clearer, let me give you this example:
Assume that I have a table called tblEmpDepts and there are the following depts.:
1- Finance
2- IT
3- Maintains
If the user entered “Fin” or “Finan”, they query should retrieve record number#1 which is Finance. I understand that this could be accomplished by enclosing “*” between query parameter:
However, I can’t seem to have the query retrieve the first record “Finance” when the user enters additional letter such as “Finances” or “Financee”.
Any idea would be highly appreciated
Thanks
I am trying to use LIKE operator in a query to find any similarities for a word entered into a parameter. To make my idea clearer, let me give you this example:
Assume that I have a table called tblEmpDepts and there are the following depts.:
1- Finance
2- IT
3- Maintains
If the user entered “Fin” or “Finan”, they query should retrieve record number#1 which is Finance. I understand that this could be accomplished by enclosing “*” between query parameter:
Code:
Like “*” & [Parameter] & “*”
Any idea would be highly appreciated
Thanks
Comment