Hey,
When an error occurs in the runtime of your code, hopefully you've written some error handling to deal with it.
My question is, how does access decide which error routine to use?
Say you open a form and some form open code (with error handling) runs and calls another procedure(also with error handling). If an error occurs, which error handling routine does access use?
Does it use both? So it leaps into the called procedure's error handling, exits, and then leaps back to the form open code and then into the form open code's error handling?
Or does it use the form open's error handling only?
I ask, simply to work out how rock solid to write my routines, ie I don't turn echo off in one procedure but I call a sub procedure that does. Do I have to make sure I turn echo back on in the parent procedure's error handling?
Cheers,
Pete
When an error occurs in the runtime of your code, hopefully you've written some error handling to deal with it.
My question is, how does access decide which error routine to use?
Say you open a form and some form open code (with error handling) runs and calls another procedure(also with error handling). If an error occurs, which error handling routine does access use?
Does it use both? So it leaps into the called procedure's error handling, exits, and then leaps back to the form open code and then into the form open code's error handling?
Or does it use the form open's error handling only?
I ask, simply to work out how rock solid to write my routines, ie I don't turn echo off in one procedure but I call a sub procedure that does. Do I have to make sure I turn echo back on in the parent procedure's error handling?
Cheers,
Pete