>Thisform.Release doesn't call QueryUnload. I think QueryUnload only gets called if you hit the X in the right hand corner of the form. Just have QueryUnload and the Exit button both call your Thisform.CloseEvent. Then have your Thisform.CloseEvent include the code Thisform.Release. I think that will do the trick.
That's right, but don't forget Nodefault in the Queryunload to stop it from closing before running any other code...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.