you make a function:
function string stringQuoReplace(string txt) {
Replace(txt,"'", "''")
}
and on ur sql statmnt, would look something like this:
text = stringSwap(text);
string SQL = "INSERT INTO tabel (First, Second, Third) VALUES (number, text, text)"
what that code does, is to replace ' with '' <-- 2 single quotes, not double quotes.
Best Regard's
Tiju Thankachan
Mrutyunjay51, if this helps please login to Mark As Answer. | Alert Moderator