im following a tutorial on youtube and i cant copy the same command on my project.
the command on the video is:
http://imgur.com/otl9Mva
the command on my project is:
http://imgur.com/oufvk5v

thetableadapter.delete command is missing.. why?

im new with vb2010 database.. so im simply following tutorial that requires less code.

i found another alternative..

Dim choice = MsgBox("Do you want to delete this account?", MsgBoxStyle.YesNo + MessageBoxIcon.Question, "Confirmation")
        If choice = MsgBoxResult.Yes Then
            Me.Validate()
            InventoryBindingSource.RemoveCurrent()
            Me.InventoryBindingSource.EndEdit()
            Me.TableAdapterManager.UpdateAll(Me.DataDataSet)
            MessageBox.Show("Record has been deleted", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information)
        End If

it's working now

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.