I have a function (lets call it Function1) that runs several calulations and etc. One of the first lines of this function is the error handling line of:
On Error goto err
Then in the err section I have the appropiate error trapping code.
Somewhere in the middle of Function1 I call Function2, which runs additional calculations, and when finished resumes where left off on Function1. In Function2 I have similar error trapping like in Function1 (on Error Goto errr)
The problem I am having is that if an error occurs in Function2, it returns to the err section within Function1, not within Function2 from where the error occured. How do I keep the error traping that occurs in Function2 in Function2?
On Error goto err
Then in the err section I have the appropiate error trapping code.
Somewhere in the middle of Function1 I call Function2, which runs additional calculations, and when finished resumes where left off on Function1. In Function2 I have similar error trapping like in Function1 (on Error Goto errr)
The problem I am having is that if an error occurs in Function2, it returns to the err section within Function1, not within Function2 from where the error occured. How do I keep the error traping that occurs in Function2 in Function2?