Escape character for parentheses?

  • Thread starter Thread starter EllenM
  • Start date Start date
E

EllenM

I'd like an escape character parentheses, so I can use "(letter)" as a
criteria.

Thanks in advance for your help,
Ellen
 
SELECT * FROM table WHERE field = "(letter")


or, in a context where you need it as a string


" SELECT * FROM table WHERE field = '(letter)' "

or

" SELECT * FROM table WHERE field = ""(letter)"" "




Vanderghast, Access MVP
 
Yep, I made a typo in the first case, the closing parenthesis had to be
inside the string.


SELECT * FROM table WHERE field = "(letter)"



Vanderghast, Access MVP
 
Back
Top