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

VS 2012 How to update database [ example ]

$
0
0
Hello

I'm working on little project and i stuck . I Add a row and add a record into database but when i reopen database there is no new record ..

Example

Code:

Private Sub Btadd_Click(sender As Object, e As EventArgs) Handles btadd.Click

        Dim newcolumn As accountsDataSet.accountsRow
        newcolumn = AccountsDataSet.accounts.NewaccountsRow()

        newcolumn.username = txtuser.Text
        newcolumn.password = txtpass.Text

        AccountsDataSet.accounts.Rows.Add(newcolumn)
     
    End Sub



Also i want to know how i can read record from database into textbox . If you have any tutorial or help file how to work with databases for vs2012 it could be usefull ..

Thank you

Sorry on bad English

Viewing all articles
Browse latest Browse all 27514

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>