Guest User

Untitled

a guest
Jan 22nd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.49 KB | None | 0 0
  1. Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
  2. Dim MyCommand As New MySqlCommand
  3. con.Open()
  4. MyCommand.Connection = con
  5. MyCommand.CommandText = “INSERT INTO Employee(IDNo,FirstName,LastName,email) VALUES( ‘” & txtID.Text & “‘,’” & txtfirstname.Text & “‘,’” & txtlastname.Text & “‘,’” & txtemail.Text & “‘)
  6. MyCommand.ExecuteNonQuery()
  7. con.Close()
  8. MsgBox(“Record successfully added!)
  9.  
  10. End Sub
Add Comment
Please, Sign In to add comment