Solved How to copy records from one database to another including attachments files (1 Viewer)

atiqahmed

New member
Local time
Tomorrow, 01:59
Joined
Mar 17, 2021
Messages
22
Hello everyone,

I want to copy my records form one database to another database with attachments files. where records should be copied ID to ID. CustomerFile database records copy into MyDataBase. both database files are attached please help me to solve this matter.
 

Attachments

  • CustomerFile.accdb
    472 KB · Views: 131
  • MyDataBase.accdb
    460 KB · Views: 121

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 04:59
Joined
May 7, 2009
Messages
19,230
open frmCopyTable.
 

Attachments

  • CustomerFile.accdb
    552 KB · Views: 119

atiqahmed

New member
Local time
Tomorrow, 01:59
Joined
Mar 17, 2021
Messages
22
Dear Arnelgp thanks alot for your wonderful VBA code it is working but there is little bit issue it is copying complete table and pasting on another database, i want to just copy records including attachments and paste into another database based on ID field. can you please modify it.

Thanks alot
awaiting your prompt reply
 

atiqahmed

New member
Local time
Tomorrow, 01:59
Joined
Mar 17, 2021
Messages
22
Sorry to say i couldn't make you understand. what i mean to say that just copy records from one database to another database. in your file you paste complete table where it replace the old data. ID to ID mean exact copy but old data should be remain there.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 04:59
Joined
May 7, 2009
Messages
19,230
you mean Append records to the other database?
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 04:59
Joined
May 7, 2009
Messages
19,230
here try this (for appending).
 

Attachments

  • CustomerFile.accdb
    672 KB · Views: 152

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 04:59
Joined
May 7, 2009
Messages
19,230

Users who are viewing this thread

Top Bottom