Results 1 to 6 of 6
  1. #1
    TiaWillis's Avatar
    TiaWillis is offline Novice
    Windows Vista Access 2003
    Join Date
    Jan 2018
    Posts
    1

    i don't see a huge problem with my complex database, but it can't be easily opened

    Couple horrible hours ago I haven't opened my dear database, I have seen error: The database 'Ler2.mdb' needs to be repaired or isn't a database file. I asked urgent help to my workers. Nothing works.

  2. #2
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Sometimes Access databases become corrupted, and cannot be repaired.
    One method that has always worked for me is to do the following:
    Open a new, blank database, and go to Import Access Database, browse to your old database and select all Objects, Relationships, and Import/Export specifications and then start using this new database.
    It is pretty quick and easy, and just about everything comes over (including VBA).
    The only things I have found that don't come over are some database settings, like if you are selecting a Startup Form or are hiding the Navigation Pane. But those are quick and easy to set in the new database.

  3. #3
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,127
    Hi Tia and welcome.

    Do you have a recent backup?

    BEFORE trying what Joe suggested, make a BACKUP COPY of your db then try the following.

    1. If you can open the db, do a compact and repair - in database tools menu

    2. If that doesn't fix it, DECOMPILE your database to remove any corrupted compile code
    See this link for more info
    http://www.fmsinc.com/MicrosoftAcces.../Decompile.asp
    After that you need to RECOMPILE - open the Visual Basic Editor then click Debug...Compile.
    Finally compact and repair again.

    If both fail, do what Joe suggested ....but no guarantee that will work either

    And remember to make regular backups
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  4. #4
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    If both fail, do what Joe suggested ....but no guarantee that will work either
    I must be lucky, this has worked every time for me, without fail (but sadly, "Compact and Repair" never has)!

  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
    Lucky so far ....?

    I often decompile and that nearly always works.
    It's very quick and has no downside.
    If even that fails, the database may be so unreadable that you can't even get a list of objects to import to your clean db.
    That has happened to me on several occasions over the years.
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  6. #6
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    I admit, I have tried "Compact & Repair" many times, but never tried decompiling.
    That link looks like a good resource.

    You also hit on another good point:
    Do you have a recent backup?
    It is always a good plan to backup your database regularly, so if all else fails, you at least have something good to go back too. All of ours are backed up nightly.

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

Similar Threads

  1. Replies: 1
    Last Post: 05-28-2014, 10:59 PM
  2. complex (?) query for a huge table
    By jetmcquack in forum Queries
    Replies: 1
    Last Post: 05-16-2013, 04:44 PM
  3. Replies: 1
    Last Post: 03-19-2012, 11:39 AM
  4. complex design problem
    By Madmax in forum Access
    Replies: 2
    Last Post: 12-09-2011, 08:25 AM
  5. Database size is huge due to memo fields
    By swaroopbhave in forum Import/Export Data
    Replies: 2
    Last Post: 08-07-2010, 11:00 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