📎 AI Summary:
The user is seeking help on how to create an "update" (edit) button for a student details database in a Windows Forms application. They have successfully implemented add, remove, and save functionalities but are unsure how to implement editing existing records. The thread primarily involves the user requesting code for the update button, with clarification that they mean "update" rather than "upgrade," and no solutions or responses from others are included.

vbcrazy

New Member
Joined
Jun 2, 2011
Messages
4
Thread Author #1
hi all...

I created a student details database using service-based database.

The add button, remove button and save button work properly. I could not create a edit / upgrade button successfully.

Please, anyone help me.... say me the code to create a edit / upgrade button please...

here is my code :

ADD BUTTON:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.BiodanmentoBindingSource.AddNew()
NamaTextBox.Enabled = True
End Sub

REMOVE BUTTON:
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Me.BiodanmentoBindingSource.RemoveCurrent()
End Sub

SAVE BUTTON:
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Me.Validate()
Me.BiodanmentoBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.BiodanmentoDataSet)
End Sub

so how edit button????
 

vbcrazy

New Member
Joined
Jun 2, 2011
Messages
4
Thread Author #2
sorry.. wrong word used not UPGRADE button. UPDATE BUTTON

TQ...