PREVENTING USER FROM QUITTING APP 
Author Message
 PREVENTING USER FROM QUITTING APP

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



Tue, 11 Jul 2000 03:00:00 GMT  
 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




Wed, 12 Jul 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. I need to prevent users from exiting my app to windows

2. Preventing user closing windows while VB app is running

3. how to prevent user from closing an app from task bar

4. Preventing a VB app from closing when user logs off in Win '95

5. Reset screen so taskbar app prevents maxed apps from displaying underneath

6. Reset screen so taskbar app prevents maxed apps from displaying underneath

7. Word 2000: VB app wants to wait for it to quit

8. Pausing App.Quit till After Printing

9. XP Bug - DocumentBeforeClose doesn't fire for successive docs on App Quit

10. Quitting Apps which use OLE server

11. Quitting out of Apps.

12. hta app crashes on quit ?

 

 
Powered by phpBB® Forum Software