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

Append table in external DB

Status
Not open for further replies.

tomwp

Programmer
Dec 24, 2009
1
US
Hi, I need to append a table in an external db with the records in my current db using VB.

Both tables have the same structure.

Not sure how to do this, any help would be appreciated.
 
You don't really need vb to do this. You can create a query and then in vb docmd.openquery

Here is an example of taking data from a table in the current file and appending it to a table in another file:

Code:
INSERT INTO tblTable IN 'C:\Documents and Settings\My Documents\External.mdb'
SELECT *
FROM tblTable;
[code]

You would change tblTable to the name of your local table and if the name of the table is different in the external mdb, then you would change that tblTable name too.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top