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!

Insert records from external database 1

Status
Not open for further replies.

3239

Technical User
May 14, 2003
64
Hi everyone.

I have a query in my current database that pulls information from an external database. What I am trying to do is insert the records from the external database into related tables in the current database.

Thanks.
 
Code:
INSERT INTO Currentdbtablename( Field1,field2,.....)
SELECT Field1,field2,.....
FROM externaldatabasetablename IN 'drive:\Path\dbnametest.mdb';
 
Thanks for your response pwise. I was able to insert records into a single table, but is there a way to insert information into two tables? Or will I have to you two seperate insert into statements.
 
I think you will have to use two insert statments
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top