Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Access Crashes when opening a Form

Posted on 2007-07-22
Medium Priority
Last Modified: 2013-11-28

Im looking for ideas about how to solve a problem with an MS Access 2003 application that has been distributed to a number of client locations and seems to be working well at all of them except one. In this case, opening a certain form causes the application and Access itself to stop running and close.  Im not even able to open this form in design view without bring Access down. There is nothing particularly unique about this form, except that it references a very large table that the application links to in another MDB file.

I suspect that there is something about the installation of Access itself that may be problematic, or that the application is somehow corrupted such it fails at this site only.

Any suggestions would be appreciated.
Question by:RTQ
LVL 75

Accepted Solution

DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) earned 750 total points
ID: 19543205

This just solved a similar problem here on EE a couple of days ago - "worked on all systems except one" ...

A **DeCompile** may help here ...

But first, if you have not already:
Check for any **Missing References via the VBA Editor>>Tools>>References ....

Then, follow this procedure:

0) **Backup your MDB**
1) Compact and Repair the MDB, as follows:
Hold down the Shift key and open the MDB, then from the menu >>Tools>>Database Utilities>>Compact and Repair ...
2) Execute the Decompile (See example syntax below) >> after which, your database will reopen.
3) Close the mdb
4) Open the mdb and do a Compact and Repair (#1 above).
5) Open the mdb:
    a) Right click over a 'blank' area of the database window (container) and select Visual Basic Editor. A new window will open with the title 'Microsoft Visual Basic' ... followed by then name of your MDB.
    b) From the VBA Editor Menu at the top of the window:
        Note ... after the word Compile ...you will see the name of your 'Project' - just an fyi.

6) Close the mdb
7) Compact and Repair one more time.

*** Executing the DeCompile:
Here is an example of the command line syntax  (adjust your path and file name accordingly) for executing the


Run this from Start>>Run, enter the following command line ...

"C:\Program Files\Microsoft Office\Office\Msaccess.exe" /decompile


For more detail on the Decompile subject ... visit the Master on the subject (and other great stuff) Michael Kaplan:


LVL 39

Expert Comment

ID: 19543214
Over 90% of the time if Access works on one computer but not another, it is missing references.  In the Visual Basic Editor check under tools > references for any reference that says "missing".  Fix that.

To avoid that problem try to store all the reference files in the same relative UNC path (such as: C:\Program Files\Microsoft Office\OFFICE11\ADDINS).  Also use an application launcher to deploy the database (my favorite free one is Little Setup Builder http://www.ammasw.com/LSB_Intro.html because it is so quick and easy to use) to make sure the correct referenced files are where they are supposed to be.

 If you don't have the word "Missing:" on one of the references on the  computer causing the problem, carefully check the date, time and size of every referenced file on the problem computer against the date, time and size on a computer without problems to make sure the versions are the same.  With any that are different, copy the problem computer file to another folder (in case changing it causes other problems) and copy a "good" one to the problem computer.

You can have your database notify you of broken references on a client's machines using the code explained here: http:Q_21681567.html#15800828

Other than that, are the OS and Access Versions and SP level the same?  Try repairing Access on problem computer.  

You can also 'try creating a new form and copy all the objects and code from the problematic form to the new one.

LVL 10

Expert Comment

ID: 19543406
go with te above possible solutions.  If that fails, make sure the "evil PC" has a default printer defined.  Office applications wig out when there is no default printer associated with it.
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.


Expert Comment

ID: 19569207
Is this DB almost 2GB?

Author Comment

ID: 19571543
Hello TaeSoft:

No. The MDB file containing the application is small - about 6k. One of the databases that it links to is about 207mg. This file contains a table that is used by the form that crashes when its open (either at run time or in design view). As it turns out, this large database seems to be getting corrupted. I think the culprit is an encryption process that takes place during transmission to the client site. This is still a theory - it is only happening for one client. But it looks promising.
LVL 75
ID: 19571588

I'm on a roll this week with Decompile ...  6/6 :-)


Author Comment

ID: 19571845
Thanks DatabaseMX:

I did try your decompile procedure, then reimported all of the objective. While it did not solve my problem, it was a helpful procedure to go through since it resolved some problems I saw in the program (i.e., "unsupported" dependencies for several forms, etc.). I also implemented a version of the code you pointed me to for testing references.

Rick Q
LVL 75
ID: 19571848
ok ... well, that's a good start :-)

I will now make that a 6.5 /7 for the week to date :-)


Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
Implementing simple internal controls in the Microsoft Access application.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Suggested Courses

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question