>Bruce,
>
>I'm now more confused than before. Why have an "X" if it dosen't work.
It does indeed work :) Let me try to explain a little better:
In a top-level, when you close from the title bar (like the 'X', or icon double-click, etc., two events fire, in this order:
Queryunload
Destroy
The 'X' closes the TL (or any other form), but you still have to stop the event processing with a CLEAR EVENTS somewhere. Either of the above two events will work for this. Try the CLEAR EVENTS in either place, you will see termination of form, event processing, and code following READ EVENTS in main program will continue to run.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.