After having spent a bunch of hours trying to save a corrupted database, I thought I’d mention what happened, in case anyone runs up against the same problem and won’t have to waste as much time as I did.
Compacting/Repairing the database didn’t work. It would get to about 90% then seemingly the screen would flash like it normally does and the database re-opens, but the progresss bar never went away. JetComp didn’t work either, it gave an error about halfway through.
Importing all tables into another db failed also; was able to import some tables, but then got “table in use by someone else” message on others.
I finally took an empty copy of the database, and started do append queries from the old database.
Eventually I found the corrupted table. There was no longer a PK specified, and opening the table and scanning through the records, I finally found a record with #ERROR in all fields. Couldn’t delete that record, though. I tried various means to copy the good records out, but kept getting stymied. Like just selecting a bunch of record and then doing a CTL-C to copy them. The progress bar would advance, then stop, and the process would seemingly be done (but progress bar was still there).
I tried opening a recordset and using DAO to read through the records. I got some records this way, but then would get a “An Error occurred and Access must close” error message.
I finally figured out that there was another record causing problems! With the table displayed, I placed my cursor in the record in question (which seemed OK), and tabbed through fields until I got to a memo field. When I tabbed into this field, I got a message something to effect “The field is too big to be edited”! I deleted this record, found another record with same problem and deleted it, and was finally able to then continue to extract the records up to and then after the #ERROR record.
I guess I got out all the data just in time, because then I could no longer find the code I had written to help diagnose and extract the data.
Of course, what made it really bad was that I had to do all this with a splitting headache after a trip to the dentist that morning!