All pastes #756087 Raw Edit

Mine

public text v1 · immutable
#756087 ·published 2007-10-31 03:51 UTC
rendered paste body
Dim rowsaff As Integer = 0

        rowsaff = Me.EggsTableAdapter.DelEgg(lbEggs.SelectedValue)
        EggsTableAdapter.Update(SSDataSet.Eggs)

        MsgBox(rowsaff)
        ref()

' msgbox shows "1" when executed
' when i check the table data it still shows the data in the database
' here i also specify the table name "Eggs" to be updated