Hi,
cmd.CommandText="INSERT INTO " & NomF & " VALUES " & "('" & TextBox3.Text & "','" & TextBox4.Text & "')"
If TextBox3.text="Hello" I get no error
but if Textbox3.text="Hello, how are you" I get an error because of the comma and it's the same thing if TextBox contains an apostrophe.
(idem for Textbox4.text, of course!)
Could you hepl me ?
Thanks
JJM
cmd.CommandText="INSERT INTO " & NomF & " VALUES " & "('" & TextBox3.Text & "','" & TextBox4.Text & "')"
If TextBox3.text="Hello" I get no error
but if Textbox3.text="Hello, how are you" I get an error because of the comma and it's the same thing if TextBox contains an apostrophe.
(idem for Textbox4.text, of course!)
Could you hepl me ?
Thanks
JJM