Execution of this application has stopped....

DataMiner

Registered User.
Local time
Today, 14:09
Joined
Jul 26, 2001
Messages
336
Hi,
I am intermittently getting the dreaded error message:

"Execution of this application has stopped due to a runtime error".

This is in a run-time version of an Access 2002 database, and it only happens when I'm closing the database, and then only intermittently.

I have no code that is set to run on close, not even a compact-on-close.

The run-time version runs on a Windows 2000 terminal server, and I can't check it out on the server in full mode because the server only has the runtime version installed.

Outside of the server, I've never seen this error.

I've already compact and repaired both the FE and BE, to no avail. The DB compiles OK, so I don't think it's a reference problem, although how would I know on the server?

I suppose I can try a rebuild. Any other ideas?
 
Do you have error trapping is all of your subs and functions? You should if you are using the runtime version of Access.

Have you tried importing all of your db objects into a new database?
 
Yes, I have error trappping set in all subs and functions.

At any rate, no sub or function should be running at the time that this is happening. All I'm doing is closing the database. I only have one form open at the time, and the only event on the form is an on-open event.

If this keeps happening I will import everything into a new database as you suggested, but I would rather not have to do this because then I have to re-set all of my user level security stuff.
 
What is the command to quit you use?
Code:
DoCmd.Quit
or?
Code:
DoCmd.RunCommand acCmdExit

Have you tried using both, and no success?
________
Silver Surfer Vaporizer
 
Last edited:
I've been using

-------------
Docmd.Quit
---------------

Just because that's what I get when I use the Access wizard to install a button to quit the application.

However, I notice that in the help file, it says this option is provided for backwards compatibility and it recommends using

-----------------------
Application.Quit
---------------------

instead. So that's what I've now changed to.

We'll see......
 

Users who are viewing this thread

Back
Top Bottom