I'm hoping someone can help me find a more effecient way of importing a table from one access db to another. Right now I'm setting table1 from db1 to a recordset variable. Then I loop through the recordset and insert one record at a time into table2 in db2. The two tables are identical in structure. Is there a way I can run a line of code like:
"INSERT INTO Table2 SELECT Table1.* FROM Table1;"
Granted, the tables are in different mdb's and I know the above code works if both tables are in the same mdb, but I don't have that luxury.
The way my code is written now works, but I'm importing over 80,000 records and it takes about 20 minutes. When I run the line of code mentioned above, it takes about 10 seconds. I would like to be able to speed up the 20 minute code and hope that someone out there can help.
Thanks,
TwoOdd
--------------
Good judgment comes from experience, and experience comes from bad judgment.
-- Barry LePatner
"INSERT INTO Table2 SELECT Table1.* FROM Table1;"
Granted, the tables are in different mdb's and I know the above code works if both tables are in the same mdb, but I don't have that luxury.
The way my code is written now works, but I'm importing over 80,000 records and it takes about 20 minutes. When I run the line of code mentioned above, it takes about 10 seconds. I would like to be able to speed up the 20 minute code and hope that someone out there can help.
Thanks,
TwoOdd
--------------
Good judgment comes from experience, and experience comes from bad judgment.
-- Barry LePatner