con.Open(); command = new OleDbCommand("INSERT INTO Attendance [StudNum,SubjCode,schedconcat] SELECT StudNum, SubjCode, schedconcat FROM Enlistment [where schedconcat=? AND P=?]", con); command.Parameters.AddWithValue("?", lblsched.Text); command.Parameters.AddWithValue("?", false); adapter.SelectCommand = command; adapter.InsertCommand = command; command.ExecuteNonQuery(); con.Close();
INSERT INTO table2 (column_name(s)) SELECT column_name(s) FROM table1
INSERT INTO Attendance (StudNum,SubjCode,schedconcat) SELECT StudNum,SubjCode,schedconcat FROM Enlistment WHERE schedconcat=? AND P=?
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)