bluejaguar456 Posted November 6, 2008 Posted November 6, 2008 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 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 Quote
Administrators PlausiblyDamp Posted November 8, 2008 Administrators Posted November 8, 2008 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. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.