Hello,
When we want to end a procedure (that's been called by another sub routine) within an error handler, we just use END. This prevents the error handler from passing back up to the original sub routine that called the procedure in the first place. This is great.
However when we use End from within a form, it doesn't end, it continues on executing code (see example below). After our app presents a user form, if the user hits cancel we want to END the entire procedure and execute no more code. Putting "END" in the code for the cancel button still passes the procedure back up to the main system and continues executing code. We want to end everything at that point without continuing. Here's the code:
We tried calling a sub routine from the cancel button back in the main system module that just contained "END" but that didn't work either.Please Login or Register to view this content.
Here's our cancel button code:
Any ideas on how to just flat out end all code from the form?Please Login or Register to view this content.
Bookmarks