Results 1 to 4 of 4

Thread: [RESOLVED] How to recover a corrupt mdb

  1. #1

    Thread Starter
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Resolved [RESOLVED] How to recover a corrupt mdb

    Hi


    Very annoyed at the moment. I should have backed it up this morning and didn't. Now its corrupt.

    Not only is it corrupt its so corrupt it won't let me in to copy the code.


    Compact and repair helpfully tells me that its corrupt and I should copy it and use compact and repair.

    :/


    Any ideas of how to get in?
    Or just head down and re-code?

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: How to recover a corrupt mdb

    Compact and repair helpfully tells me that its corrupt and I should copy it and use compact and repair.
    did you try to repair a copy? maybe corruption on disk
    no earlier backups?

    you could try a hex editor to see if you can find the vba code in the file
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  3. #3

    Thread Starter
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Re: How to recover a corrupt mdb

    Hi,

    Had to re-write the code - see post in API forum


    Compact and repair tells me that its corrupt and I should use compact and reapir :/

    100mb data... hex editor is a good idea.
    No previous copies with the updated code, last one was around two days before. So at least that gave me a starting point!



    Thanks for the suggestion.

    Hints for others : remember to back up after doing anything with APIs before you run it!

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  4. #4
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: [RESOLVED] How to recover a corrupt mdb

    Hints for others : remember to back up after doing anything with APIs before you run it!
    especially subclassing

    also on faster machines ctrl break may not work in endless loops, this crashes my excel too often
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width