I believe your Dataset Update Command should come before your DataAdapter Fill Command. You would be just refilling anything in the Database Table to the DataSet wiping out your record during runtime. That's why when you restart it shows up.
ds.Tables("tblCustomers").Rows.Add(dsNewRow)
da.Update(ds, "tblCustomers")
da.Fill(ds, "tblCustomers")
I also do not see where you are using a BindingSource for the TextBoxes then ResetBindings(False). It would make it easier but it isn't necessary.
Phasma
Junior Poster in Training
81 posts since Nov 2008
Reputation Points: 21
Solved Threads: 21
Skill Endorsements: 0
Question Answered as of 1 Year Ago by
Phasma