>>In the Error method of your form baseclass, you could include the command of ThisForm.QueryUnload()
>
>QueryUnload() is an event, it won't do anything if you just call it.
>
>You need to Release() the form, but this will fire code from the Destroy() and Unload() and whatever else is in its path (which I believe he wanted to bypass), so you just need to set flags wether or not to fire cleanup code.
Oops. I forgot to mention that all this is in my base form framework so I cover all ways of closing a form. My QueryUnload code has a This.Release() as the last line if all goes well in that method.
Mark McCasland
Midlothian, TX USA