Results 1 to 7 of 7
  1. #1
    james28 is offline Advanced Beginner
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2014
    Posts
    92

    Record is too large


    Hello all,

    I have a small issue with a database. In 2010, I understand that the record size is capped at 4,000 characters, excluding memo and ole. That is perfectly fine. In one of my records, I was at about 3,900 characters and it gave the error that the record was too large and I could not do anything. After compacting and repairing, it fixed the issue. The number of characters did not change though. Is there any reason this would happen and any way to prevent it in the future?



    Thank you!

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    Unfortunately MS access is not memory efficient, when you change/delete/add data it 'saves' the space in your database and doesn't release it until you do a compact/repair. So if your field was one that routinely gets updated or changed you will probably get it again at some point. In versions of Access greater than 2007 you can set the database to compact on close which *should* relieve this issue for you.

  3. #3
    james28 is offline Advanced Beginner
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2014
    Posts
    92
    Rpeare,

    Thank you for the suggestion. Do you know if there is any risk to the database corrupting itself on a compact/repair? My fear in having it run automatically would be that it would break itself.

  4. #4
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    I have only encountered a problem with compact/repair in one instance, and it was on a database that was routinely updated with about a million records a week (all records were deleted, then updated from an external text file). The database (2003 version) hadn't been compacted in a long time and it was gigantic, I don't know whether that was what caused the failure or not, but the database became corrupt when it finally was attempted.

    The long and the short is that I haven't ever encountered a problem with compact/repair except under one extreme circumstance, and the database was backed up regularly so it was possible to restore it, then import all the objects to a new database as an alternate form of compact/repair.

  5. #5
    james28 is offline Advanced Beginner
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2014
    Posts
    92
    Rpeare,

    Thank you for the follow up. It was very informative.

    Do you happen to know how the auto compact/repair is handled on a split database?


    For example, I have the database split so that the actual tables are never directly edited. Instead, users use my front end database, which has a few forms and reports. If I were to add the auto compact/repair to the front end database, would I compare/compact the linked tables?

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Review this discussion https://www.accessforums.net/access/...xit-45876.html

    C&R on frontend does nothing to the backend.

    Since users should be running their own copy of frontend and should not be doing any design edits, don't see how auto C&R is useful for split db.
    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.

  7. #7
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    I'll add to what June said, once a database is built a back end should not really need to be compacted/repaired except very occasionally. When I build a database I try to disallow deletes in case something gets removed by accident there is no way to get it back unless you restore the whole database. However, if you do allow the removal of data (particularly large amounts of it) a compact/repair may be needed periodically on the back end. If you are not doing lots of deletion/addition of records as June said, there's really no reason to need to do a regular compact/repair on the back end.

    Secondly I do not use bound forms at all so I do not know how they perform in terms of bloating your front end database. I use a lot of unbound forms/controls on all my data entry and those *do* bloat over time, but I haven't really had one that *needed* to be compacted/repaired more than about once every 3 months. June has very rightly pointed out that once your development is done the bloat factor is pretty small under normal circumstances.

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

Similar Threads

  1. Replies: 8
    Last Post: 11-07-2013, 08:33 AM
  2. Replies: 5
    Last Post: 05-14-2012, 02:01 PM
  3. Record too large error
    By ragpatil in forum Forms
    Replies: 6
    Last Post: 09-24-2011, 04:19 PM
  4. Property value is too large.
    By foru in forum Access
    Replies: 9
    Last Post: 06-28-2011, 03:55 PM
  5. Replies: 1
    Last Post: 02-26-2009, 11:31 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