locked
TableAdapter.Insert doesn't work. RRS feed

  • Question

  • Hello,

    I try to input data in a database and it doesn't work the way i am doing it. This is my code:

        Dim PlayerTableAdapter As New AllPlayersDataSetTableAdapters.PlayersTableAdapter
    
        Private Sub SaveBtn_Click(sender As System.Object, e As System.EventArgs) Handles SaveBtn.Click
    
            PlayerTableAdapter.Insert(VoornaamTxtb.Text, AchternaamTxtb.Text, GeslachtCombobox.Text, GeboorteDatumBtn.Value, 0)
    
            Me.Close()
            Form1.Show()
        End Sub
    Thanks!!

    Wednesday, October 17, 2012 5:39 PM

Answers

All replies