Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Quotes, apostrophes in data
Message
De
23/07/2001 16:35:24
Jason Dalio
Northern Interior Regional Health Board
Prince George, Colombie Britannique, Canada
 
 
À
23/07/2001 16:27:01
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00534017
Message ID:
00534084
Vues:
15
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform