
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.)