Microsoft Office Forums


Reply
Thread Tools Display Modes

execution of this application has stopped due to a run-time error

 
 
Rajeev
Guest
Posts: n/a
 
      04-08-2009, 08:40 PM
Hi everybody,
I developed an application with access and when I tried to deploy the
application with the access runtime it gives me the following error:

"Execution of this application has stopped due to a run-time error"
"The application can't continue an it will shut down."
It works fine in full version of access..
The following is the code:
The function Activity_Enter() calls the StartRecordAtBeginning and
it(StartRecordAtBeginning) does executes fine but after that I get an error
message

"Execution of this application has stopped due to a run-time error"
"The application can't continue an it will shut down."

please help me...I'm working on this from last the 3 weeks but i could not
fix the problem
Note: its working fine in full version of access.

Private Sub Activity_Enter() 'this checks TargetID info
If IsNull(TargetID) Then
Call StartRecordAtBeginning
End
End If
End Sub
-----------------------------------------------------------------------------------------------------------------------

Sub StartRecordAtBeginning()
If MsgBox("You have not yet entered the target ID#. " & _
"You must start data entry at the beginning. " & _
"Click 'Retry' to go back and enter the target " & _
"ID#, or click 'Cancel' to erase this record without " & _
"saving it.", vbRetryCancel, "Enter Target ID#") = vbCancel Then
Call UndoRecordButton_Click
End
Else
Screen.ActiveControl = ""
TargetID.SetFocus
End If
End Sub





 
Reply With Quote
 
 
 
 
Alex Dybenko
Guest
Posts: n/a
 
      04-09-2009, 11:00 AM
Hi,
you need to insert error handlers in each proc - then you get a meanful
message and can find an error. search for mztools - great adding to insert
error handlers

--
Best regards,
___________
Alex Dybenko (MVP)
http://accessblog.net
http://www.PointLtd.com


"Rajeev" <(E-Mail Removed)> wrote in message
news:9FCF8691-E5C2-4E26-8009-(E-Mail Removed)...
> Hi everybody,
> I developed an application with access and when I tried to deploy the
> application with the access runtime it gives me the following error:
>
> "Execution of this application has stopped due to a run-time error"
> "The application can't continue an it will shut down."
> It works fine in full version of access..
> The following is the code:
> The function Activity_Enter() calls the StartRecordAtBeginning and
> it(StartRecordAtBeginning) does executes fine but after that I get an
> error
> message
>
> "Execution of this application has stopped due to a run-time error"
> "The application can't continue an it will shut down."
>
> please help me...I'm working on this from last the 3 weeks but i could not
> fix the problem
> Note: its working fine in full version of access.
>
> Private Sub Activity_Enter() 'this checks TargetID info
> If IsNull(TargetID) Then
> Call StartRecordAtBeginning
> End
> End If
> End Sub
> -----------------------------------------------------------------------------------------------------------------------
>
> Sub StartRecordAtBeginning()
> If MsgBox("You have not yet entered the target ID#. " & _
> "You must start data entry at the beginning. " & _
> "Click 'Retry' to go back and enter the target " & _
> "ID#, or click 'Cancel' to erase this record without " & _
> "saving it.", vbRetryCancel, "Enter Target ID#") = vbCancel Then
> Call UndoRecordButton_Click
> End
> Else
> Screen.ActiveControl = ""
> TargetID.SetFocus
> End If
> End Sub
>
>
>
>
>

 
Reply With Quote
 
 
 
Reply

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Execution has Stopped due to a Run Time Error Stephen Holder Access General 2 09-28-2009 10:07 AM
Error:execution of this application has stopped due to a run-time error Sandy H Access Forms 1 06-23-2009 06:13 PM
Execution has stopped due to a run-time error Kiraly Access General 0 06-06-2005 08:55 PM
Execution has stopped due to a run-time error Kiraly Access VBA Modules 0 06-02-2005 09:31 PM
error "execution of this application has stopped due to a run-time error balo Access External Data 0 08-22-2004 11:59 PM


All times are GMT. The time now is 03:26 PM.
Microsoft Office Forums is not affiliated with Microsoft Corporation.


Welcome!
Welcome to the Microsoft Office Forums
 


Latest Threads
Aargh. What is this?
PeteJ (Today, 12:10 PM)

Word 2013 Insert Symbol (Not Responding)
tpthrshr (Today, 02:49 AM)

Can't save a large Word document
Josh (Today, 01:03 AM)

Remote help?
newman200 (04-13-2014, 12:54 PM)

Access command button help needed
MikeyL (04-06-2014, 07:01 PM)