Tuesday, March 20, 2012

Save TextBox to Database as new row?

(VB 2005 Express) I have a textbox linked to a DataTable (database). I want to save its text into the database as a new row. What is the VB code? The following is not working.

Me.Validate()
Me.myDataTableBindingSource.EndEdit()
Me.myDataTableTableAdapter.Update(Me.myDatabaseDataSet.myDataTable)

Thanks for any help.

There's a great learning resource here. Over 16 hours of video for free from Microsoft:

http://msdn.microsoft.com/vstudio/express/vb/learning/

No comments:

Post a Comment