{OleDbConnection mycon = new OleDbConnection(); OleDbCommand command = new OleDbCommand(); command.CommandText = "INSERT INTO Table1 (Emp_ID, Asset_ID, Actual_Start) VALUES (?, ?, ?)"; command.Parameters.Add("@Emp_ID", OleDbType.VarChar, 80).Value = textBox1.Text; command.Parameters.Add("@Asset_ID", OleDbType.VarChar, 80).Value = textBox2.Text; command.Parameters.Add("@Actual_Start", OleDbType.Date).Value = DateTime.Now; command.Connection = mycon; mycon.Open(); command.ExecuteNonQuery(); }
command.CommandText = "INSERT INTO Table1 (Emp_ID, Asset_ID, Actual_Start) VALUES (@Emp_ID, @Asset_ID, @Actual_Start)";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)