Database Merge with Autonumber Primary Key

Zempten

Board Regular
Joined
Apr 21, 2014
Messages
55
Hello

I have 2 databases (Database A and B which have an identical structure) and I am trying to merge Database B into Database A. The problem is that the master table that I use has a autonumber field which acts as the primary key and has a relationship to a child table. If I just take import directly they will clash as duplicates. Is there anything I can do to prevent this from happening? Thanks
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
no, you cannot add to autonumber, just let the added records renumber.
NOW, if you have related tables on these merged recs...add a new field called [PrevIndex] and put the autonumber from the merged table in it for preservation.
Then you can renumber all related tables to the NEW autonumber indexs.
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,453
Members
448,967
Latest member
grijken

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top