Querying for phrase that includes the word And

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

Guest

How do I query using a phrase *me and you*. I do not want the word "and" to
be an operator. Thanks.
 
Trudy said:
How do I query using a phrase *me and you*. I do not want the word "and" to
be an operator. Thanks.

Use quotes:

Criteria: "*me and you*"
 
The 'And' in the criteria Like "*me and you*" is _inside the String
delimiters " and it will be treated as part of the String, _not_ as a
logical operator.
 
I entered it as *me and you* and got zero results. It is being treated as a
logical operator. After entering the phrase (enclosed by *s), I get this:

Like "*you" And Like "me*"
 
I entered it as *me and you* and got zero results. It is being treated as a
logical operator. After entering the phrase (enclosed by *s), I get this:

Like "*you" And Like "me*"

Like "*Me and you*"

on one line works for me (though the grammar bothers me. Perhaps you
should try

Like "*You and I*" <g>
 
No. You have to enter:

Like "*you and me*"

including the double quotes as String delimiters.
 
That's the ticket! I manually entered the quotes rather than letting Access
do it automatically. Bingo! Thanks!
 

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