devxlogo

Searching for Apostrophes

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-admin

Share the Post: