>Michael,
>
>If you wna this to occur everytime the fomr is released no matter how it is released, then put your code in the form's Destroy event. It fires before the contained objects have been destroyed.
>
>The QueryUnload event only fires if the form is released using the Close (X) button or through RELEASE FormReference. If Thisform.Release() is called the form is released but the QueryUnload does not get fired. The Destroy gets fired for all methods of releasing the form.
PMFJI,
Do you know if this difference in behaviour (firing of QueryUnload()) is "by design"?
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up