Page 2 of 2 FirstFirst 12
Results 16 to 24 of 24
  1. #16
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,114
    In addition to Ajax's suggestions I would recommend you compact the new database after each db is appended; if you run the update queries for each db as you load them then you can empty the Origin_ID fields after the foreign keys have been updated.



    Cheers,
    Vlad
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  2. #17
    Kalmed2018 is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2018
    Posts
    20
    Hi Ajax,
    thank you for your comments. The problem is due to the initial size of my original databases and not because of the new field and the new PK. My four database's size are: 1.68GB, 1.4GB, 1.63GB and 0.93GB. Changing the field properties did not make them any smaller! do you think that with your method i could fit all the data in a single database?
    Thanks

  3. #18
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,114
    Have you considered the free MS SQL Server Express?

    https://www.microsoft.com/en-us/down...aspx?id=101064

    Cheers,
    Vlad
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  4. #19
    Join Date
    Jan 2021
    Location
    Missouri Ozarks, USA
    Posts
    19
    Hi Kalmed,
    It's always a good idea to have a quality assurance plan for the final outcome after a big merge operation. This can be done be pulling 10 % of your outcome records ( ID - (CInt( ID/10 ) * 10) ) and compare them with the original tables. There should be absolute match between your source and final records.

  5. #20
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,411
    Changing the field properties did not make them any smaller! do you think that with your method i could fit all the data in a single database?
    it won't until you compact the db's. If you have compacted, then I suspect something else is wrong or the changes made have minimal impact

    Without know what your data is, it may well be that the stated sizes of your source tables does mean you cannot combine the data into one db - in which case you will need to use sql server express or similar as suggested by Gicu.

    If you are happy with adding 1m/10m/whatever to the source PK/FK fields, then you can just update the PK autonumber field. Saves you a field and an operation to tidy thinks up later. You can't manually populate an autonumber field, but it can be done using sql.
    Attached Files Attached Files

  6. #21
    Join Date
    Jan 2021
    Location
    Missouri Ozarks, USA
    Posts
    19
    A quality assurance plan will require cross walking the new primary keys with the old ones so don't lose the old ones until you've checked the data.

  7. #22
    ssanfu is offline Master of Nothing
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Quote Originally Posted by Kalmed2018 View Post
    ...I have four identical and quite complex databases with the exact same structure but different data. Each one of them contains three main tables and multiple queries and relationships. Each table has a primary key (autonumber) that connects the tables between them.
    I am afraid that the structure of the database has now become obsolete and I am sure I could do with a better designed database from scratch, based obviously on the same table fields....
    Maybe you would post an image of your relationship window?

    Better would be if you could post the dBs. I realize the file sizes are too large to post here, but you could try "BOX" (realize some people will not download from external sites. Or delete all but a few records in each dB and post here.

    I have a test computer that I frequently wipe and restore the OS, so I'm not worried as much about malware.

  8. #23
    Kalmed2018 is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2018
    Posts
    20
    Hi Vlad,
    I am not familiar to the SQL Server Express. What is that and how this can help with my problem? Is it not the same with having for example a database with linked tables to my four databases and control all of them through a single application? I did have a quick look of the specifications and it looks like the size limit is indeed 10GB but I would not be able to transfer my attachments. Is that correct

    Many thanks,

    Kalmed2018

  9. #24
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,114
    MS SQL Server Express is the free version of Microsoft's flagship relational database. You are correct that the size limit is 10Gb and that it does not have an "attachment" data type like Access does. I assume you are not using the "attachment" type as you would have had problems with the append queries (they don't work with multi-value fields like the attachments). In SQL Server you can store files as "BLOB" (see this for more info:https://www.microsoft.com/en-us/rese...x%3Fid%3D64525).
    In MS SQL Server Express you would be able to merge the four db's into one as per your original goal. But if you want to keep it in Access why not just move the attachements (I assume you have them embedded as OLE objects) to the file server in a organized folder structure using some sort of naming convention for folders (CustID) and files (Invoice#.PDF) in which case you wouldn't even need to store the path in the db (which is the easiest way to deal with external files).

    Cheers,
    Vlad
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Multiple Databases?
    By Beanie_d83 in forum Access
    Replies: 6
    Last Post: 05-25-2016, 10:50 AM
  2. Replies: 1
    Last Post: 12-03-2014, 06:41 PM
  3. Replies: 8
    Last Post: 10-03-2012, 02:35 PM
  4. databases
    By graciemora in forum Access
    Replies: 1
    Last Post: 10-25-2010, 07:34 PM
  5. Sharde Databases
    By Tina in forum Database Design
    Replies: 12
    Last Post: 09-08-2010, 11:24 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