Say I have a Query:
SELECT id FROM Students WHERE (Sponsor='markham's')
The middle appostrophy causes a cut off and error in the query in Access. How do I deal with such problems?
Two ways to handle problem. I prefer the 1st way in Access.
Use double quotes to delimit text.
SELECT id FROM Students WHERE (Sponsor="markham's"
Use two consecutive single quotes to represent one in a string.
SELECT id FROM Students WHERE (Sponsor='markham''s')
Terry Broadbent
Please review faq183-874.
"The greatest obstacle to discovery is not ignorance -- it is the illusion of knowledge." - Daniel J Boorstin
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.