A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Runtime Problem



 
 
Thread Tools Display Modes
  #1  
Old April 20th, 2010, 03:35 AM posted to microsoft.public.access.forms
gagecres
external usenet poster
 
Posts: 36
Default Runtime Problem

I've been working on a database for 2 months with no problems. Today, for
the first time, I got an error message which read: "Execution of this
application has stopped due to a run-time error. The application can't
continue and will be shut down." I have never seen this message before and I
have no idea what is causing it. Do I just need to reinstall the run-time
engine? Please help!!!!!
  #2  
Old April 20th, 2010, 04:42 AM posted to microsoft.public.access.forms
Tom van Stiphout[_2_]
external usenet poster
 
Posts: 1,653
Default Runtime Problem

On Mon, 19 Apr 2010 19:35:01 -0700, gagecres
wrote:

No.
You get this error when you have code that triggers an error and you
don't have an error handler. Quick example:
private sub Button1_Click()
dim x as integer
x=1/0
end sub

When you run this code in the runtime, it will product your quoted
error.
You can add your own error handler and the problem goes away. A very
simple error handler:
private sub Button1_Click()
on error goto err_handler
dim x as integer
x=1/0
exit_handler:
exit sub
err_handler:
msgbox "An error occurred: " & Err.Description
resume exit_handler
end sub

-Tom.
Microsoft Access MVP




I've been working on a database for 2 months with no problems. Today, for
the first time, I got an error message which read: "Execution of this
application has stopped due to a run-time error. The application can't
continue and will be shut down." I have never seen this message before and I
have no idea what is causing it. Do I just need to reinstall the run-time
engine? Please help!!!!!

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:49 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.