Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Apostrophe check
Message
From
28/01/2003 10:36:37
Alvin Lourdes
Children and Youth Services Cluster
Toronto, Ontario, Canada
 
 
To
All
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Title:
Apostrophe check
Miscellaneous
Thread ID:
00746206
Message ID:
00746206
Views:
57
Function SQLApostropheCheck(strCheckString As String) As String
If strCheckString = "" Then
SQLApostropheCheck = ""
Else
SQLApostropheCheck = Replace(strCheckString, "'", "''")
SQLApostropheCheck = Replace(strCheckString, "&", "&&")
End If
End Function


Hi,

The function above does not seem to deal with a single quote.
ie: if strCheckString = TEST' ORDER
Any ideas?

Thanks.

Alvin
Next
Reply
Map
View

Click here to load this message in the networking platform