nokizorque

Untitled

Dec 16th, 2015
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Private Sub cmdClear_Click()
  2.     txtID.text = " "
  3.     txtFname.text = " "
  4.     txtMname.text = " "
  5.     txtLname.text = " "
  6.     txtAge.text = " "
  7.     txtSex.text = " "
  8.     txtGS.text = " "
  9.     txtAddress.text = " "
  10. End Sub
  11. Private Sub cmdSave_Click()
  12.     Adodc1.Recordset.AddNew
  13.     Adodc1.Recordset!ID = txtID.text
  14.     Adodc1.Recordset.Update
  15.     MsgBox "Data successfully added", vbInformation
  16. End Sub
  17. Private Sub Command1_Click()
  18.     frmMain.Show
  19.     Unload Me
  20. End Sub
Advertisement
Add Comment
Please, Sign In to add comment