Advertisement
Guest User

for josh

a guest
Oct 15th, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. clsDBConnector dbConnector = new clsDBConnector();
  2. string cmdStr = "INSERT INTO tblLate (studentID, period, dateOfLate, minsLate) " +
  3. "VALUES ('" + cmbStudentID.SelectedValue + "' ,'" + period + "' , '" + DateTime.Today + "','" + minsLate + "')";
  4. dbConnector.Connect();
  5. dbConnector.DoDML(cmdStr);
  6. dbConnector.close();
  7. this.Close();
  8. MessageBox.Show("Late Added.");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement