Adding file to database

bluejaguar456

Well-known member
Joined
Aug 22, 2006
Messages
47
hey people i ahve finally got round the error i used to have regarding the insert into syntax error.

I am now trying to add on textbox to its field in the database but when i click the button it does not do anythin, it does not throw up an error message at all, can you please help and see if anythin is wong with the follwing code? thanks


Code:
Private Sub btnsave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnsave.Click
 Dim cb As New OleDb.OleDbCommandBuilder(ClientTableAdapter.Adapter)

        EclypseLiveDS.Client.Rows(0).Item(1) = txtfirstname.Text

        ClientTableAdapter.Update(EclypseLiveDS.Client)
End sub
 
Long time since I used datesets etc but IIRC you need to call .BeginEdit on the row before making changes and .EndEdit to save the changes before calling .Update.
 
Back
Top