Put your code into QueryUnload event of the form. The ReleaseType Property of the form will tell you how form was released.
>Need a reminder as to how one can code the X which appears in the upper right corner of a form. How do you access its click event?
>
>Thank you in advance!
>
>Jack Wilson
--sb--