C
Comancheace
Hi. I wanted to know if anybody knows what can i put in
criteria to do a parameter query that searches a field
when you input a phrase. For example: I used this:
Like "*" & [Enter your username] & "*" and it works fine
for searches, but it only works if you input one word.
For many words it doesn´t work. Does anybody knows a
criteria that works with phrases or groups of words? For
example i have a table with usernames. If i put this
criteria and if you input John it appears all Johns in a
certain field. But if you are looking for just one
particullary like John Mcnroe Edwood Stewart you can´t
find it. I tried a thing that worked a little i putted
Like "*" & [Enter your username first name] & "*" And
Like "*" & [Enter your username lastname] & "*" and it
worked a little but for that you have to input separately
to names and then the program finds a name matching with
those to names. But now i have a list of products that
have repeated names and when you do that you get a lot of
results in your query and i wanted just one, the one im
looking for. Is there a way of using a criteria similar
to this or not, that you can input a phrase and the query
searches it for you? Thanks.
criteria to do a parameter query that searches a field
when you input a phrase. For example: I used this:
Like "*" & [Enter your username] & "*" and it works fine
for searches, but it only works if you input one word.
For many words it doesn´t work. Does anybody knows a
criteria that works with phrases or groups of words? For
example i have a table with usernames. If i put this
criteria and if you input John it appears all Johns in a
certain field. But if you are looking for just one
particullary like John Mcnroe Edwood Stewart you can´t
find it. I tried a thing that worked a little i putted
Like "*" & [Enter your username first name] & "*" And
Like "*" & [Enter your username lastname] & "*" and it
worked a little but for that you have to input separately
to names and then the program finds a name matching with
those to names. But now i have a list of products that
have repeated names and when you do that you get a lot of
results in your query and i wanted just one, the one im
looking for. Is there a way of using a criteria similar
to this or not, that you can input a phrase and the query
searches it for you? Thanks.