Hi All
Hope you are all well. I have a button in my application which updates a field in a sql table. An incidence has arose where the user has typed into the textbox the word BOM's and the word with.
Needless to say, when clicking on the submit button, the application fires up an error message stating incorrect syntax after 's and also error at the with. If I take the above words out, it all works fine. So
So I am assuming as ' and with is used it sql it thinks the content of the textbox (txt_req_details) is part of the sql code and the apostrophe in the BOM's is the end of the sql expression.
How can I code so that the contents of txt_req_details are updated.
Thank you in advance
Hope you are all well. I have a button in my application which updates a field in a sql table. An incidence has arose where the user has typed into the textbox the word BOM's and the word with.
Needless to say, when clicking on the submit button, the application fires up an error message stating incorrect syntax after 's and also error at the with. If I take the above words out, it all works fine. So
Code:
"UPDATE Temp_Table SET change_detail = '" & txt_req_details.Text & "' WHERE IssueID = '" & Main_Menu.txt_maxid.Text & "'" &
How can I code so that the contents of txt_req_details are updated.
Thank you in advance