Hi,
I need a function that will properly quote for insertion an SQL (for Access DB) statement. I currently have one that works for a single Apostrophe:
Public Function ApostropheCheck(ByVal strIn As String)
ApostropheCheck = Replace(strIn, "'", "''")
Exit Function
End Function
Can you help me with one that will do exactly the same as above except instead of replacing ' --it will replace all " ?
Thank you!
I need a function that will properly quote for insertion an SQL (for Access DB) statement. I currently have one that works for a single Apostrophe:
Public Function ApostropheCheck(ByVal strIn As String)
ApostropheCheck = Replace(strIn, "'", "''")
Exit Function
End Function
Can you help me with one that will do exactly the same as above except instead of replacing ' --it will replace all " ?
Thank you!