How to filter a table with...??

M

Mirko

Hi all!
My question is how to filter a access column with the
next task: I want to have listed all fields from a column
that have in their fields (The field is a text field)
a "*" asterix. Also the criteria is that field contains
*. The fields are diferent and have diferent strings like
+, -, etc.
TIA Mirko
 
J

John Vinson

Hi all!
My question is how to filter a access column with the
next task: I want to have listed all fields from a column
that have in their fields (The field is a text field)
a "*" asterix. Also the criteria is that field contains
*. The fields are diferent and have diferent strings like
+, -, etc.
TIA Mirko

This is a bit tricky because the LIKE operator - which lets you search
using wildcards, partial strings, etc. - uses * as a wildcard meaning
"match any string".

The solution is to use [] to indicate to Access that you are searching
for a literal asterisk: a query criterion of

LIKE "*[*]*"

will find records containing any number of characters (the first *), a
literal asterisk, and then any number of trailing characters.
 
T

Tim Ferguson

I want to have listed all fields from a column
that have in their fields (The field is a text field)
a "*" asterix.

In addition to John's solution, the other one is

WHERE INSTR(MyTextField, "*")>0

Hope that helps


Tim F
 

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

Top