Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Quotes, apostrophes in data
Message
From
23/07/2001 16:35:24
Jason Dalio
Northern Interior Regional Health Board
Prince George, British Columbia, Canada
 
 
To
23/07/2001 16:27:01
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00534017
Message ID:
00534084
Views:
14
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
Map
View

Click here to load this message in the networking platform