This is a simple function to avoid apostrophes error for processing by SQL Server or Oracle server
This is a simple function to avoid apostrophes error for processing by SQL Server or Oracle server
Rate This is a simple function to avoid apostrophes error for processing by SQL Server or Oracle server
(1(1 Vote))
msgbox SingleCode("biju joy's Bok")
end sub
Public Function SingleCode(ByVal UrString As String) As String
If InStr(UrString, "'") > 0 Then
SingleCode = Replace(UrString, "'", "''")
Else
SingleCode = UrString
End If
End Function
This is a simple function to avoid apostrophes error for processing by SQL Server or Oracle server Comments
No comments yet — be the first to post one!
Post a Comment