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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy all data in DataTable to empty DB Table?

Status
Not open for further replies.

CraigBest

Programmer
Aug 1, 2001
545
US
In a VB.NET 2005 app that I'm building, I've selected records I need to process from an Access DB table into a VB Data Table. Now I want to copy the contents of that data table back into a blank Access table with the same structure. Is there an was to build an Insert query to do this?

CraigHartz
 
If you need a copy of the DataTable, just use the DataTable.Copy method. Then connect that new copy to a DataAdapter which has the Insert, Update and Delete statements for the Access table.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top