This tutorial about “How to Update Data Using VB.Net and MySQL Database”, Modifying of data is very important in all Program running with Database. This feature will allow the user to update the selected information displayed in the application.
This tutorial will teach you on how to update selected information from DataGridView. Please follow all the steps to complete this tutorial.
Update Data Using VB.Net and MySQL Database Steps
2. Double click your new added button and insert the following codes below.
- Str = "UPDATE user SET firstname='" & txtfname.Text.ToUpper & "',lastname='" & txtlname.Text.ToUpper & "'," & _
- "WHERE iduser='" & lblid.Text & "'"
- Dim mysc2 As New MySqlCommand(Str, conn)
- MsgBox("User successfully updated!", MsgBoxStyle.Information)
- Catch ex As Exception
- End Try
If you have any comments or suggestions in How to Update Data Using VB.Net and MySQL Database,Please feel free to leave your comment below, use the contact page of this website or use my contact information.
Email: [email protected] | Cell. No.: 09468362375
Previous Topic: How to Save Data Using VB.Net and MySQL Database