General information
Category:
Coding, syntax & commands
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
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