Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can DataSet objects support multiple OldDbDataAdapter objects?

Status
Not open for further replies.

DeGeneral

IS-IT--Management
Jul 4, 2003
12
GB
I am upgrading some VB6 programmes to VB.NET(2005). My main programme feeds data to a number of MSAccess tables. I want to know if I need a separate DataSet object for each table or can I use just one DataSet object to link to the Database and then link to each table with a different OleDbDataAdapter.

If so, then what is the correct syntax for updating hte database because the:

"OleDbTableAdapter1.Update(DataSet1)"

format doesn't work for OleDbTableAdapter2/3/4/etc.

Thanks,

DeGeneral
 
Each table adpater will update a seperate table

use

Code:
OleDbTableAdapter1.Update(DataSet1.Table1)
OleDbTableAdapter2.Update(DataSet1.Table2)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top