Can I filter records containing an asterik '*' in it.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I was trying to use a filter to get all records containing an '*' in it.
For example, PPKN0*012, PPKI0*022, EEK1*012 etc. I tried using ***, *"*"*,
*'*'* and not working. How do I use the filter for this? Appreciate for your
help.
 
I was trying to use a filter to get all records containing an '*' in it.
For example, PPKN0*012, PPKI0*022, EEK1*012 etc. I tried using ***, *"*"*,
*'*'* and not working. How do I use the filter for this? Appreciate for your
help.

You can wrap wildcard or other special characters in square brackets to make
them be taken literally:

LIKE "*[*]*"

will find any string of characters (the first asterisk), followed by a literal
asterisk, followed by any other string of characters.

John W. Vinson [MVP]
 
Thanks so much.

John W. Vinson said:
I was trying to use a filter to get all records containing an '*' in it.
For example, PPKN0*012, PPKI0*022, EEK1*012 etc. I tried using ***, *"*"*,
*'*'* and not working. How do I use the filter for this? Appreciate for your
help.

You can wrap wildcard or other special characters in square brackets to make
them be taken literally:

LIKE "*[*]*"

will find any string of characters (the first asterisk), followed by a literal
asterisk, followed by any other string of characters.

John W. Vinson [MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top