title: Call separate error handling module and don't continue?
body: <p>I have an Access 2007 database that has a series of function calls. I'm using On Error Goto Error_Handler in all the subs and functions which calls an error handling sub which updates a table with the error info and sends an error notification email. I set this up this way so I could have only one error handling module that could be called by any sub or function. </p>
  
  <p>What's happening when there's an error in one of the "non-main" subroutines or functions is that the error handling function is called (as expected and working properly) but then the code execution continues in the main procedure with whatever is after the sub that caused the error (in my case, sending a false "success" email). To be clear, ALL of my subs and functions have "On Error Goto Error_Handler" so it's not an On Error Resume Next issue.</p>
  
  <p>Is there a way to have a separate error handling function called by a sub AND have the "main" procedure stop executing? (In this case, we have a form on a timer that loops through a recordset once a second and won't try to re-execute any events that have errors logged so exiting the procedure is desired to prevent false success indications.)</p>