I don't quite understand but I'll try again.
I have a variable declared as a string
myComment is equal to a cell on my spreadsheet. If the user types in that cell special characters such as quotations or single quotes, my code produces an syntax error. My code is trying to execute an SQL statement that includes the variable myComment. How do I get the SQL statement to execute?
For example:
In this example "Mary's" is what is in the cell. myComment equals "Mary's".
My SQL statement won't execute because of the single quote in Mary's.
What can I do?
Bookmarks