I have an error form which is called ON ERROR, displaying the relevant error and writing to a text file, etc.
Now, in case the error is a major one that stops the user from continuing on (eg., it may be an error in the GotFocus() event of the first control on the form, meaning an infinite loop, etc) I want to close down the form that caused the error.
To make matters even more complicated, if the error occurs in the Load() event, then the ActiveForm object doesn't exist yet, so I can't use that.
How would I go about do this sort of thing? Any code lying around, just longing to be stolen ;-)
Now, in case the error is a major one that stops the user from continuing on (eg., it may be an error in the GotFocus() event of the first control on the form, meaning an infinite loop, etc) I want to close down the form that caused the error.
To make matters even more complicated, if the error occurs in the Load() event, then the ActiveForm object doesn't exist yet, so I can't use that.
How would I go about do this sort of thing? Any code lying around, just longing to be stolen ;-)