Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exit Options

Status
Not open for further replies.

bdm1

Programmer
Feb 4, 2002
75
US
I have a quit button on a form to close down the access application. There is also some other code attached to this event that must run each time the quit command button is clicked. For that reason, I do not want the users to have any other options for exiting the application. How can I get rid of the X in the upper right corner of the Access title bar? I have turned it of on the form but it is still available from the Access title bar. Thanks
 
Hi!

This thread provides a discussion and some solutions: thread705-681065

Roy-Vidar
 
Another method I've used is a variation on the global variable technique from the thread that Roy mentioned. If you are using a Switchboard or other form to control your users' navigation, and as long as the form is always open (either visible or hidden), you can place a hidden checkbox on the form and set its default value to "True". Then put in code in the Switchboard's "Exit" button that changes the value to "False" and code in the form's Unload event like this:

Cancel = Me!chkExit

... where chkExit is the name of the checkbox. As long as the value of the checkbox is False (which it will be until clicking on the correct button to exit the app), trying to exit in any other way will simply be cancelled. Except for a Ctrl-Alt-Delete or powering off the machine. Not much you can do about those events.

HTH...

Ken S.
 
Thanks to all who replied. I went to the thread link and found my answer. It works just great....thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top