>Aren't you creating an infinite loop? thisform.release() from click of the button will call queryunload which in turn will (unnecessary) call the button's click.
>
>
>
>>There is a command button (cmdExit) with the following
>>CLEAR EVENTS
>>thisform.Release
>>
>>The QueryUnload event has
>>thisform.cmdExit.Click()
>>
>>When I click on cmdExit the form disappears but the main VFP window stays active. I don't get the "Main Form Done" messagebox and trying to close the main VFP window gets the "Cannot Quit VFP" message.
>>
>>What have I missed????
>>
>>Thanks to all............Rich
Nope,
thisform.Release() will not call QueryUnload()
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.