Barbara,
Thanks for the reply, that makes sense now... we are in trouble now!
>John,
>
>Yes and No < grin > In the Form.QueryUnload code put
>if < Required conditions are met >
> DoDefault()
> return .T.
>else
> return .f.
>endif
>
>In your form release code put
>
>if Thisform.QueryUnload()
> Thisform.release()
>else
> < message about why the user can't exit >
>endif
Thanks to Bruce for reminding me about the DoDefault().
>
>
>QueryUnload() is code that is specifically designed to determine if the the form SHOULD be released. It's called first, before any control is deactivated, released, etc.
>
>HTH
>Barbara
>
>
>
>>Barbara,
>>
>>Would the call to QueryUnload come before the ThisForm.Release()?
>>
>>How does QueryUnload differ from the Release method of a form?
>>
>>Thanks