Share via

Parenthesis in query

Anonymous
2013-05-05T23:01:45+00:00

I am trying to do an update query where the criteria is the first item of a phone number, a parenthesis.  How do I enter the parenthesis in the Criteria row?  Thank you.  I am using Win 7, Access 2003

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2013-05-06T00:20:53+00:00

Ummm... Shift-9, just (?

Or maybe

LIKE "(*"

if you want to find all phone numbers that start with a left parenthesis?

Given that you're asking the question, I gather that this isn't giving you the desired result. What specifically do you have now, and what do you want to update it to?

Was this answer helpful?

0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Anonymous
    2013-05-06T03:57:08+00:00

    Sorry, Faxylady, but this isn't making sense. A criterion on a field of

    Left([Company], 1) OR Like "(*"

    applied to the Company field will probably not return what you think it's returning! The first criterion will only be true if the [Company] field is equal to its own first character (that is, a one-letter field). I'm guessing that

    LIKE "(*"

    would give exactly the same results - those records where the field starts with a left parenthesis.

    Could you post an example of what's in the field and what you're trying to accomplish with it?

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2013-05-06T02:46:40+00:00

    Thank you for responding.  I thought I had tried this b4 and it did not work.  However, I tried it again and somehow it DID work.  What I entered in the Criteria row was Left([Company],1) Or Like "(*" and it produced the results I am looking for.  Thanks again.

    Was this answer helpful?

    0 comments No comments
  3. Tom van Stiphout 40,211 Reputation points MVP Volunteer Moderator
    2013-05-05T23:40:09+00:00

    Like "(*"

    Was this answer helpful?

    0 comments No comments