Results 1 to 3 of 3
  1. #1
    ComputerPower is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2012
    Posts
    2

    Merging Data From Duplicate Database Files

    Hello,



    We have a client who has managed to muck up their Access database by means of having two users on two computers attempting to use and modify it at the same time, and the primary (actually, the only) location for the database is on Dropbox.

    What seems to have happened is that Dropbox detected a conflict, with two different versions of the same file, and resolved this by creating two separate files. How long this went on before the client noticed that they were entering data into two separate files, I can't say.

    Their client list is 28,000 someodd people long. What I need to know is if there's a process for merging the two files together, without creating 28,000 duplicate entries.

    This is being run on Access 2002.

  2. #2
    Rawb is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Dec 2009
    Location
    Somewhere
    Posts
    875
    That... is potentially a very nasty problem.

    If you don't use Autonumber Columns anywhere, you should be fine to just copy over any unique Records.

    If you do use any Autonumber Columns, the solution is going to be a little more complex:
    1. First off, label one of the databases as the "main" db and the other one the "secondary" db (you can decide which is which at random if you want).
    2. Then, in the secondary db, do the following:
      1. Break any Relationships involving an Autonumber Column.
      2. Change all the Autonumber Columns to "Long Integer" Numbers.
      3. Restore the broken Relationships to the no-longer-Autonumber Columns.
      4. Remove all non-unique Records from the secondary db so only the Records you will be merging into the main db remain.
      5. Find the next available Autonumber value (from the main db) for each no-longer-Autonumber Column in the secondary db.
      6. Update the no-longer-Autonumber values so that they start at that next available number (from the main db).
      7. Verify that the Relationships are intact and the child Records updated to the new no-longer-Autonumber values correctly.
      8. Append the data from your secondary db into your main db.


    Obviously, you wil want to make sure you have valid backups of both dbs before starting. You will also need to be able to perform the entire merge during a time when neither database is being used.

  3. #3
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Bob Larson has a merge analysis tool on his site that may be applicable.
    I don't think anyone uses a database on dropbox for multiuser activity????

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 12-05-2014, 07:59 AM
  2. Merging multiple mdb files into one
    By Swoosh in forum Access
    Replies: 2
    Last Post: 04-04-2014, 12:01 PM
  3. Merging duplicate data
    By spenco in forum Access
    Replies: 2
    Last Post: 12-02-2013, 05:30 PM
  4. Merging and deleting duplicate records
    By Rider in forum Access
    Replies: 1
    Last Post: 01-06-2012, 01:44 PM
  5. merging PDF files
    By cuzza69 in forum Programming
    Replies: 1
    Last Post: 01-29-2010, 07:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums