OleDbConnection oConn = new OleDbConnection(ConnSt); try { OleDbCommand oComm = new OleDbCommand( "insert into MyData(CLName,CLAge,CLMajor) values('" + clientName.Text + "','" + clientAge.Text + "','" + ClientMajor.Text + "'") , oConn); oConn.Open(); oComm.ExecuteNonQuery(); oConn.Close(); } catch (Exception exepc) { MessageBox.Show(" There is a problem," + exepc.ToString()); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)