Microsoft Office Access Has Stopped Working

austin3515

Board Regular
Joined
Dec 19, 2010
Messages
80
Almost finished with the biggest database I've ever done. There's probably 25 to 30 diferent tables/forms/reports/queries, total, with pages and pages of code.

When I create a brand new database and import all the objects from the "broken" version, that makes the problem go away. Then a few days later, the same problem will come back.

If anyone asks, I did try compact and repair (I do it relatively often).

Also, I just tried to open on another computer, but now the .laccdb file is stuck open so I can't open it...

Wlould any of this be improved by upgrading to 2010?
 
Last edited:

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
It sounds like you have a corrupt form or report.

If you haven't split the database, do it; you separate data from logic, which will give peace of mind when this sort of thing happens. Then:

Get into the code environment (Alt+F11) and Debug > Compile. If you get any errors fix them until the code compiles; you now have a stable state for the next step.

Import all objects into a new DB.

Go to this link, which has some useful detail on dealing with corruption. Near the bottom of the page is a link to an add-in that lets you export all database objects as text, then re-import them into a new database.

The text file approach works because it strips out all the compiled meta-code that can get corrupted. You effectively sanitise the forms and reports. Once re-imported the new db should be both more stable and smaller.

Disclaimer: not a magic bullet, but the text file round-tripping has saved my bacon a couple of times.

Denis
 
Upvote 0
I can't wait to try it when I get home tonight. Sounds like a great plan!! Out of curiousity, would splitting the database prevent this issue in teh future?
 
Upvote 0
Not necessarily. But it will keep your data safe.

Make regular backups of the front end; do one before making design changes, for example. Then if it goes belly-up you restore a recent front end backup, and keep going.

Also, if you don't do it regularly, a compact and restore is a useful bit of housekeeping. In Access 2007 it's in the Home button > Manage > Compact & Restore.

Denis
 
Upvote 0
"Get into the code environment (Alt+F11) and Debug > Compile. If you get any errors fix them until the code compiles; you now have a stable state for the next step."

I tried this and, whoa, did I find a lot! There were snip-its of code tied to forms that wre totally unrelated. I think it was my fault because I occasionally will copy a form, and perhaps the code comes with it...

Also, I had a lo of me. references that compile did not like, so i replaced with forms.frmabc.controlname.

At any rate, after fixing all my compilation errors, my database is working again, A-OK. If it breaks again, I'll try the rest of your suggetions.

THANKS!!!!
 
Upvote 0
hey, I split my database, but now the "table and related view" isn't working. So all my queries, forms and reports, which you used to be grouped with the table to which they were related, are now all listed as unrelated. Can this be fixed?
 
Upvote 0
Can't say I've had that problem before. Switch to one of the other options (like Object Type), then back again and see if that helps. Otherwise I'll run a search and see if anything crops up.

Denis
 
Upvote 0
I had tried all that. After posting I found that once an object was opened, it founds its way home, so to speak. But with a couple dozen objects, that was a pain in the neck!
 
Upvote 0

Forum statistics

Threads
1,224,595
Messages
6,179,798
Members
452,943
Latest member
Newbie4296

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top