Different tables, you mean different field names?
In that case use:
insert into table1 (field1, field2, field3, etc.) select otherNameField1, otherNameField2, otherNameField3, etc from table2
Main Topics
Browse All TopicsI need to write vc program codes to import datas from one table in one access file to the table in another access file. Both of them have the same constructs. There are 70,000 records in the table. But They are two different tables so I can not use the sql "Insert into table1 (select...)". All I can do is to read one record from the source table and insert into the target table every time. This is too slow. Can someone tell me a more effective method to solve this question.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Iaskyou,
CurrentDb.Execute "INSERT INTO [C:\TEMP\Target.mdb].[tabl
-------------
If you have number of tables to transfer, you need to make a table called tDataTransfer (with two fields: TableName, SortOrder).
Enter table names in it, enter A, B, C ....Z in SortOrder making sure one-side tables are handled first. And then,
Dim rs 'As ADO.Recordset
Dim SourcePath As String
Dim TargetPath As String
SourcePath = "C:\SourceFolder\SourceDb.
TargetPath ="C:\TargetFolder\TargetDb
Set rs = CurrentDb.OpenRecordset("S
If rs.RecordCount>0 Then
CurrentDb.Execute "INSERT INTO [" & TargetPath & "].[" & rs!TableName "] SELECT * FROM [" & SourcePath & "].[" & rs!TableName "]"
End If
rs.Close
Mike E.
This question has been abandoned and needs to be finalized.
You can accept an answer, split the points, or get a refund (information at http:/help/closing.jsp)
If you need a moderator to help you, post a question at Community Support (http:/Community_Support/)
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
nexusnation, cleanup volunteer
Iaskyou,
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:
RECOMMENDATION: Award points to eghtebas http:#9105253
Please leave any comments here within 7 days.
-- Please DO NOT accept this comment as an answer ! --
Thanks,
jadedata
EE Cleanup Volunteer
Business Accounts
Answer for Membership
by: rgcolePosted on 2003-08-07 at 17:16:56ID: 9104478
I must be completely missing something but here is a thought.
Why don't you use the append query that Access allows you? Have the source table linked in the mdb that houses the destination table. Then append the linked source table into the destination table.
Robert