Application always quit in access runtime on every run-time error (1 Viewer)

Ramnik

Registered User.
Local time
Today, 22:43
Joined
Jul 12, 2012
Messages
145
Hi everyone,
I have setup a small application with front/back end in local network. On client machines i have installed access runtime. Although it works fine but it suddenly quit when there is any run time error while working on client machine. Although on server machine ( where full version is running it didn't close the application ).

What i need is an option to not quit the application completely.
As i am not expert in coding of try/catch statements I need a simple solution for time being .

Thanks.
 

vanceric

New member
Local time
Today, 09:13
Joined
Mar 25, 2014
Messages
7
Hi everyone,
I have setup a small application with front/back end in local network. On client machines i have installed access runtime. Although it works fine but it suddenly quit when there is any run time error while working on client machine. Although on server machine ( where full version is running it didn't close the application ).

What i need is an option to not quit the application completely.
As i am not expert in coding of try/catch statements I need a simple solution for time being .

Thanks.

It may not be the best solution but you can skip error trapping and just add

On Error Resume Next

It will skip the line of code where the error happened but it needs to be added to every function where you could encounter an error. There's not global solution I'm aware of in Access.
 

spikepl

Eledittingent Beliped
Local time
Today, 19:13
Joined
Nov 3, 2010
Messages
6,142
Download MZ-tools. It makes adding error handlers extremely easy

Removing error handling by On Error Resume Next is a toxic band-aid solution, and not recommended.
 

Galaxiom

Super Moderator
Staff member
Local time
Tomorrow, 03:13
Joined
Jan 20, 2009
Messages
12,853
It may not be the best solution but you can skip error trapping and just add

On Error Resume Next

Not only "not the best solution" but I would say not really a solution at all.
 

Ramnik

Registered User.
Local time
Today, 22:43
Joined
Jul 12, 2012
Messages
145
Thanks Guys, I will give it a try and will tell if i have any doubts.
 

Users who are viewing this thread

Top Bottom