Exiting an mdb

S

Shell

Without disabling the "X" in the top right hand corner of the mdb, how do I
capture this event so I can do some processing before exiting.

Thanks
 
P

Piet Linden

Without disabling the "X" in the top right hand corner of the mdb, how doI
capture this event so I can do some processing before exiting.  

Thanks

You can only trap for the form's Close event. So you would create a
hidden form and open it when the application opens. In that form's
close event, you could call a routine to do the processing.
 
Top