
PREVENTING USER FROM QUITTING APP
Hi Jacques,
No such event, bu remember that canceling the unload event of any opened
form will cancel the closure of Access itself (and most of the other opened
forms at that moment too). So, at startup, open an invisible form that will
make that watching job, canceling its unload event if some condition is not
met.
Vanderghast, Access MVP.
Quote:
>I need to run some procedures at the end of a session in my application.
I'd
>like to provide the user with a command button for quitting so I can run my
>procedures at that time, but there is nothing to prevent the user from
>clicking on the Access control box (the 'X' in the upper right corner of
the
>Access window)... or is there? I can't find an "OnExit" event for Access or
>any such distant cousin.
>How can I accomplish this?
>Thank you
>Jacques Fiorentino
>LH81 ENTERTAINMENT