Closing Access

R

Rosemary

Hello,

Is there a way to disable closing an access applicatin by clicking the red
"X"? I want to ensure users will use File - Close or File - Exit.

Thanks,
 
A

Alessandro Baraldi

Rosemary ha scritto:
Hello,

Is there a way to disable closing an access applicatin by clicking the red
"X"? I want to ensure users will use File - Close or File - Exit.

Thanks,

The only solution Windows_Style that i know is to use an Hidden form
and Cancel the Unload Event.

Other solution like disable X button or remove it and all ContextMenù.

Here you can find a solution:
http://support.microsoft.com/kb/245746/en-us

@Alex
 
T

Tony Toews

Rosemary said:
Is there a way to disable closing an access applicatin by clicking the red
"X"? I want to ensure users will use File - Close or File - Exit.

Why? What's so important about closing Access down in such a fashion?
If there is some code you want to always run when the user is exiting
Access then open up a hidden form. And on that forms OnClose event
run the code you want.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top