Searching for an Asterisk in a query

K

Ken Pinard

Hello,
I am attempting to locate records that have an account name that starts
with and asterisk.

For example

** do not use **

But, I just don't remember how to search for a wild card. I should know,
but, brain dead today.

Please help

Thank you in advance,

Ken Pinard
 
K

Ken Pinard

Thank you, that worked. Well it works in Jet.

I just realized the procedure uses ADO. Do you know to do this in ADO?

Thank you again, I appreciate the help.

Ken

Tom Ellison said:
Dear Ken:

LIKE [*]*

Tom Ellison


Ken Pinard said:
Hello,
I am attempting to locate records that have an account name that
starts with and asterisk.

For example

** do not use **

But, I just don't remember how to search for a wild card. I should know,
but, brain dead today.

Please help

Thank you in advance,

Ken Pinard
 
D

Douglas J. Steele

Since * isn't a wildcard in ADO (the wildcard is %), you should be able to
use LIKE "*%"

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)



Ken Pinard said:
Thank you, that worked. Well it works in Jet.

I just realized the procedure uses ADO. Do you know to do this in ADO?

Thank you again, I appreciate the help.

Ken

Tom Ellison said:
Dear Ken:

LIKE [*]*

Tom Ellison


Ken Pinard said:
Hello,
I am attempting to locate records that have an account name that
starts with and asterisk.

For example

** do not use **

But, I just don't remember how to search for a wild card. I should know,
but, brain dead today.

Please help

Thank you in advance,

Ken Pinard
 
K

Ken Pinard

Thank you, Sometimes the obvious is not so easy to see :)

Thank you very much,

Ken

Douglas J. Steele said:
Since * isn't a wildcard in ADO (the wildcard is %), you should be able to
use LIKE "*%"

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)



Ken Pinard said:
Thank you, that worked. Well it works in Jet.

I just realized the procedure uses ADO. Do you know to do this in ADO?

Thank you again, I appreciate the help.

Ken

Tom Ellison said:
Dear Ken:

LIKE [*]*

Tom Ellison


Hello,
I am attempting to locate records that have an account name that
starts with and asterisk.

For example

** do not use **

But, I just don't remember how to search for a wild card. I should
know, but, brain dead today.

Please help

Thank you in advance,

Ken Pinard
 

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