how to intercept error message

  • Thread starter Thread starter john
  • Start date Start date
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
 
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.
 
Back
Top