I have a module that has been compiled into an exe. This exe is then used by a DTS package to do some data transformations. When an error occurs in the transformation, an event is written to the applications error log. What I want to do now is if the error log grows to greater than 15KB, I want to exit the app. If I was using a form for this, I could us “Unload Me”. This obviously will not work for a module. The only way I know how to stop the execution within a module is to use the “End” keyword. There has got to be a better option than that.

Any ideas?