Results 1 to 8 of 8
  1. #1
    zkrucz is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Oct 2016
    Posts
    103

    Corrupted DB error (and can't load attachments any more)

    I have a DB of 3 gigabyte (6000 records and about 100 fields) size which includes attachments (images). We use it to load (import) records from PDF files sent in by technicians.



    Until recently, we had no issues. I maintained the DB by compacting it weekly.

    However, as of a few days ago, the DB appears to have been corrupted and now after compacting the DB (a few times a day now), the "DB corrupted" message pops up and I have to compact the DB again.

    Each time, we can load (import) only a few records only and now the images (attachments)) will not load at all.

    How can this be fixed for good? Or can it?

    Is the DB too big (could that be the problem)? How big can an Access DB be before running into issues?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    you are only limited to 2gig. It starts acting weird at that size.

    I would stop attaching images. Instead store the PATH to the image in the table. You can still open them.
    The size will be much smaller.

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    How big is the database? If it's nearing the 2GB mark as ranman says, you could be hitting the limit.

  4. #4
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,372
    Your issue is why many of us advise against storing any attachments in an Access db.
    If you must load the images or attachments into tables, you will have to move to a back end database other than Access, such as Sql Server or MySql.
    Or you can split into multiple back ends, which might be a pain.
    Orange, I think db is reported in original post as 3 GB, which is surprising to me that it could get that big - not that Windows never mis-reports a file size...
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  5. #5
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,127
    I'm also amazed it reached 3GB before finally kicking the bucket.
    The question is how to retrieve the data from it at this point

    It can't be imported in SQL Server due to the attachment fields which AFAIK aren't supported (at least they didn't used to be)
    My suggestion would be to import tables to several different databases with each table containing attachments placed in its own database
    Hopefully that will mean no individual database is anywhere near 2GB
    If so, work through step by step removing the attachments & replacing with fields containing the path to the images (as Ranman has already said)
    Once all of that has been done, compact each in turn and merge all tables into a single database again & compact again.

    Of course, if all 6000 records and 100 fields are in one table (which sounds likely!) you are well and truly screwed....

    However, you have of course been keeping regular backups ..... haven't you?
    I have a feeling I know the answer to that question is ...NO
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  6. #6
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,372
    I think you can now (as of 2012 at least). I'm no expert on the subject - I just believe (sometimes) what Google tells me.

  7. #7
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,127
    That had passed me by ....but being as I never use attachment fields perhaps not surprising.

    This link looks useful https://stackoverflow.com/questions/...e-system-files
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  8. #8
    zkrucz is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Oct 2016
    Posts
    103
    Well, I suspected that size had something to with it. And, I do have backups. Until now, no issues. I will need to discuss with my IT tech to see how we can do what you are recommending.

    Thank you for your comments.

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

Similar Threads

  1. Expression on Load error. How to fix?
    By VicLetran in forum Forms
    Replies: 2
    Last Post: 03-22-2018, 10:35 PM
  2. Can't load form : error 361
    By GeorgeJ in forum Programming
    Replies: 3
    Last Post: 12-08-2014, 02:58 AM
  3. On Load form error
    By Bosakie in forum Access
    Replies: 1
    Last Post: 10-09-2014, 07:27 AM
  4. Replies: 3
    Last Post: 07-25-2014, 11:15 AM
  5. Replies: 5
    Last Post: 03-06-2013, 02:10 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