HI All,
I am trying to create an error handler that would automatically inform administrator by e-mail about unexpected erorrs occured.
I am using Err.Description and Err.Number methods, however they often don't provide exhaustive explanation of a problem.
WHat i would like to do is to include additional information in the error message that would identify (and show) the line of code that created an error, in other words
- On error copy\store active line of code and add it to the error message.
Could anyone drop me a line of code that would do that?
thank you
I am trying to create an error handler that would automatically inform administrator by e-mail about unexpected erorrs occured.
I am using Err.Description and Err.Number methods, however they often don't provide exhaustive explanation of a problem.
WHat i would like to do is to include additional information in the error message that would identify (and show) the line of code that created an error, in other words
- On error copy\store active line of code and add it to the error message.
Could anyone drop me a line of code that would do that?
thank you