Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Beginner
Oct 1, 1996

Searching for Apostrophes

Question:
When using VB4 and the Jet Engine with Access 2.0, I do I execute an SQL query that searches for a string that contains the apostrophe ?

Answer:
If you replace the single quote in the criteria text with two single quotes, that should work fine. That's the same thing you have to do to insert a single quote into a db field.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date