I have a textbox in my WinForm.
The user types text (anything that their keyboard allows). When they click save, sometimes an error message appears with
Syntax Error (missing operator) in query expression
I know that certain characters like ' are breaking my SQL query
I have a few questions
- Is there anything I can do so that my Query doesn't break and allow users to type whatever they want?
- If there isnt a way to do #1, how can I scan the text and remove all characters that would break my Query?