General information
Category:
Database DAO/RDO/ODBC/ADO
Title:
Inserting a string with an apostrophe
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only