how to intercept error message

J

john

Hi all,

I have an access application that open automatically a form.

when the form open, access is giving me this message box

"no object in this control"

In the form load events i have code to manage error but nothing is fire
there.

How can i intercept the error?
Depending on the computer the user will have a control that work
or no since on certain computer a driver is install and not on other
computer.

I want to catch the error and deactivate the control if the program is
run on a no driver computer.

Help!!!
Pierre
 
A

Armen Stein

Hi all,

I have an access application that open automatically a form.

when the form open, access is giving me this message box

"no object in this control"

In the form load events i have code to manage error but nothing is fire
there.

How can i intercept the error?
Depending on the computer the user will have a control that work
or no since on certain computer a driver is install and not on other
computer.

I want to catch the error and deactivate the control if the program is
run on a no driver computer.

Help!!!

It sounds like you're using an OCX that may or may not be on the
computer. This is going to be a problem, and there's no easy way to
solve it.

You can build a distributable Runtime application which includes the
control, so that it is always installed.

Or you can find a way to NOT use the control. Many controls are merely
Windows DLL calls that you can perform yourself. For example, the
CommonDialog OCX can be called directly using DLLs instead. You would
need to do some research on this for your particular case.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top