Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27333

Update row in database

$
0
0
Hi all,

I've been trying to update data in my table.
This is my code
Code:

    Private Sub Taalkeuze_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'Fill Table
        Me.GebruikersTableAdapter.Fill(Me.EasybyteDataSet.Gebruikers)
        Me.Top = (Screen.PrimaryScreen.WorkingArea.Height - Me.Height) / 2
        Me.Left = (Screen.PrimaryScreen.WorkingArea.Width - Me.Width) / 2
    End Sub

    Private Sub pcbNed_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles pcbNed.Click
        EasybyteDataSet.Gebruikers(0).Item("Taal") = "NED"
        gstrTaal = "NED"
        Laadscherm.Show()
        Laadscherm.cntTeller.Enabled = True
        Me.Close()
    End Sub

So when a user clicks the image it should update the table "Gebruikers" on index 0 and the item "Taal" to NED.
However it doens't seem to work.

Can anyone help me out?
Thanks

Viewing all articles
Browse latest Browse all 27333

Trending Articles