asked on
Public Function ReplaceSingleQuote(ByRef val As String)
'//***This function replaces the single quote to double quote***\\
If IsNothing(val) = False OrElse val <> String.Empty Then
val = val.Replace("'", "''")
val = val.TrimStart
End If
Return val
End Function
But, the problem here is that if use for multiple times for the same string it inserts too many single quotes.