sub Submit_Contact_Click(ByVal sender As Object, ByVal e As EventArgs) Dim nm = Request("textbox1") Dim cn = Request("textbox2") Dim em = Request("textbox3") Dim msg = Request("textbox4") ds=new DataSet() dbcomm=New OleDbCommand("Insert * INTO contact VALUES(1+'"+nm+"','"+cn+"','"+em+"','"+msg+"')",dbconn) dbconn.Open() dbcomm.ExecuteNonQuery() dbadp = New OleDbDataAdapter(dbcomm) dbconn.close() dbadp.fill(ds) end sub
INSERT INTO table_name VALUES (value1, value2, value3,...) INSERT INTO table_name (column1, column2, column3,...) VALUES (value1, value2, value3,...)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)