General information
Category:
Coding, syntax & commands
Doh! I forgot that you have to use double single quotes in your SQL syntax. Change your code tot he following:
Dim sQuote As String, sDQuote As String
sDQuote = Chr$(34)
sQuote = Chr$(39) & Chr$(39)
quoteIt = Replace(sStr, sDQuote, sQuote)
This will make a '' instead of a '. Are you trying to do this in Access or in Visual Basic? I am assuming Visual Basic since it is under this thread.
Previous
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