Logging the control that caused error on form

mikeco555

Registered User.
Local time
Today, 14:13
Joined
Jan 23, 2004
Messages
22
I am wondering if it is possible to log to a table the control on the form that caused an error. I already have an error routine that records the form name, user, and error string associated with the error that occured.

Thanks
 
Would it not be better to store the event, sub, or function that the error occurs in?
 
mikeco555 said:
I am wondering if it is possible to log to a table the control on the form that caused an error. I already have an error routine that records the form name, user, and error string associated with the error that occured.

Thanks
mikeco555,

For my error handling I have written a handler. Although I am not storing the errors that occur, I do use the 'currenlty active control' along with the error to determine which error message to present. The syntax for it is ErrorHandler(Err, Me.name, Screen.ActiveControl.name).

I am only showing the sytnax as a context to show the Screen.ActiveControl.name property.

Kind regards,
 

Users who are viewing this thread

Back
Top Bottom