Disable Application Quit ("X") Button 
Author Message
 Disable Application Quit ("X") Button

you can open a hidden form on startup,
declare public variale, say fReadyToQuit
in your "Quit" button's event set fReadyToQuit=true

and in hidden form Unload event set
    Cancel = not fReadyToQuit

something like this

--
Alex Dybenko
http://www.*-*-*.com/


Quote:
> Access 97, I want to be able to keep my full menus for
> Access, just prevent the user from exiting the application
> in any manner other than the "Quit" button on my forms (I
> have "shutdown procedures" that go through and perform
> some tasks when users click "Quit". If the user goes to
> the upper right and clicks the "X" button on Access, my
> procedures do not take place.

> Is this possible/recommended? Or do I need to create a
> toolbar that offers the necessary functionality (e.g.,
> print, save, etc.)



Mon, 16 Aug 2004 00:48:53 GMT  
 Disable Application Quit ("X") Button
I have a couple of suggestions for you.  

First I would hide or minimize access.  Make all forms
popup.  See the following link for code and directions:

http://www.mvps.org/access/api/api0019.htm

Second I would use I main Menu (mnuMenu).  Make that form
popup and modal.  Use a close button on it that can run
your exit procedures.

Good luck

Jeff Adams

Quote:
>-----Original Message-----
>Access 97, I want to be able to keep my full menus for
>Access, just prevent the user from exiting the
application
>in any manner other than the "Quit" button on my forms (I
>have "shutdown procedures" that go through and perform
>some tasks when users click "Quit". If the user goes to
>the upper right and clicks the "X" button on Access, my
>procedures do not take place.

>Is this possible/recommended? Or do I need to create a
>toolbar that offers the necessary functionality (e.g.,
>print, save, etc.)
>.



Mon, 16 Aug 2004 01:59:14 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Disabling "BACK"/"FORWARD" buttons

2. Disabling "BACK"/"FORWARD" buttons

3. Disable "Add button" from toolbar

4. Disable the "Insert" Button

5. How to disable "PrintScreen" button

6. How to disable the "close" button

7. disable "X" (close button) in ControlBox

8. Disable "Back" Button

9. How to disable the "Back" button

10. Disabling "close button" in a form

11. GetObject("","InternetExplorer.Application") fails in Excel VBA

12. GetObject("","InternetExplorer.Application") fails in Excel VBA

 

 
Powered by phpBB® Forum Software