>what coding and sequence of events happen when you close a form with the X at top right of the form...?
>TIA
Since you've already gotten the answer, here's more info than you were asking for.
Assume you've got a close command button on a form. If you place code in its click event like this
IF ThisForm.QueryUnload()
ThisForm.Release
ENDIF
and in the form's QueryUnload event
LOCAL llresult
llresult = < some logical condition >
IF NOT llresult
NODEFAULT
ENDIF
RETURN llresult
You can easily keep the form from being closed while something like changes are pending.
George
Ubi caritas et amor, deus ibi est