I have a form that has a small free form text field that needs to be used as a search field. My problem is that usesr are putting names in like James "Jim" Smith and 5'4" male (no it's not a dating service)
The single quote (') I'm handling with
How can I check for a double quote(" to catch it before it blows up my SQL search string?
The single quote (') I'm handling with
Code:
Name = rsName("cssname")
Dim found, char, txt
char = "'"
txt = Name
Call findChar(char, txt)
If found Then
Name = ReplaceTest(Name, "'", "''")
End If
How can I check for a double quote(" to catch it before it blows up my SQL search string?