Results 1 to 5 of 5
  1. #1
    jeanpri is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2012
    Posts
    15

    The simply way to consolidate two bases...

    Hello,

    For the moment I have no idea of how to consolidate two .mdb bases...

    This is what I want to achieve:
    - A first .mdb base will be on a server, it is the "online" version
    - A dozen users will have his own version of the base, the "offline" version, to work on it anywhere.
    - On the offline version there is a "consolidate" button to merge the offline base data with the online version (new lines and modified lines will be added from one version to the another version). In this way everybody can have the same base version.

    What is the simply way to consolidate theses bases ? (I know how to code in VBA if it is the best solution)



    Thanks !

    Jean

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,619
    I don't believe there is a simple way. I went through a similar issue. I tried to find 3rd party software that would accomplish synchronization and gave up - maybe you will have better luck there. If you are using Autonumber primary keys you will probably find this synchronization virtually impossible. I had to completely eliminate autonumber primary keys and base relationships on a real unique IDs. Our situation is simplified in that the 'field' files have a life that is limited by the construction season. At end of summer files are submitted to main office and records are appended to the master file. They will be all new records, no updates of existing data in the master. End of season reports are generated and the db probably sits untouched until next season.

    In your case, I expect you want to import new records as well as update existing more frequently. This requires 2 sql actions to be executed - an INSERT SELECT where not already existing and UPDATE - for each table affected. If relationships are established in the Relationship builder set to enforce referential integrity, the sequence (which tables must be appended first) of appending new records will be dictated by the relationships.

    You have a significant challenge ahead.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    jeanpri is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2012
    Posts
    15
    Hello, thanks for your answer !

    It's seem not easy...

    Why I can't use the "TransferDatabase" function with a macro? I have only one table to synchronize...

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,619
    I think TransferDatabase will only import the table, not append or update. Review http://office.microsoft.com/en-us/ac...001226306.aspx

    Should be able to select the method as an action in macro or use DoCmd.TransferDatabase in VBA
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    jeanpri is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2012
    Posts
    15
    Thanks. I found a tutorial here: http://www.databasejournal.com/featu...-Databases.htm

    It's seems fitted to my application.

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

Similar Threads

  1. Simply Multiplication on SubForm field using VBA
    By DB2010MN26 in forum Programming
    Replies: 1
    Last Post: 12-10-2011, 01:00 AM
  2. Replies: 3
    Last Post: 05-06-2011, 02:49 PM
  3. Match and Consolidate
    By Yap in forum Access
    Replies: 3
    Last Post: 12-16-2010, 04:26 PM
  4. Consolidate multiple columns into one
    By COforlife in forum Access
    Replies: 17
    Last Post: 10-19-2009, 01:12 PM
  5. Consolidate MDBs
    By RHall in forum Database Design
    Replies: 4
    Last Post: 01-06-2006, 12:31 PM

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