Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inserting a string with an apostrophe
Message
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Title:
Inserting a string with an apostrophe
Miscellaneous
Thread ID:
00568577
Message ID:
00568577
Views:
44
I am doing an insert:

sSql = "Insert " & _
"Into GWC.Cert_Agnc_Hldr " & _
"(agnc_num, hldr_name) " & _
"Values('" & sAgncNum & "', '" & sDsplyName "')"

The problem is that I ran across a value for sDsplyName that was: Mac's.
when it runs into this particular value for name, it gives me an error because of the apostrophe. Is there any way to do this without removing the ' from Mac's?
Thanks,
Ryan Uhl
Next
Reply
Map
View

Click here to load this message in the networking platform