Disable the Close button for Access?

  • Thread starter Thread starter Gulf Coast Electric
  • Start date Start date
Hi,

I use these techniques. They work great.
Take your pick based on version.

ACC: How to Disable the Close Button (X) on the Access
Application Window (95/97)
http://support.microsoft.com/?id=258049

ACC2000: How to Disable the Close Button (X) on the Access
Application Window
http://support.microsoft.com/?id=245746

ACC2002: How to Disable the Close Button (X) on the Access
Application Window and the Exit Command on the File Menu
http://support.microsoft.com/?id=300688

Alternatively, take a look here:

http://www.mvps.org/access/general/gen0005.htm

Hope that helps,
Jeff Conrad
Bend, Oregon
 
Thanks, any ideas on how to make the code run on DB startup?
That is disable the Close button?
I followed the article and it works fine.
I am using a Custom Menu with a File Menu with a Exit command on it.


--
-------------------------------------------------------------------------
Thanks for your Help.
Jeff Conrad said:
Hi,

I use these techniques. They work great.
Take your pick based on version.

ACC: How to Disable the Close Button (X) on the Access
Application Window (95/97)
http://support.microsoft.com/?id=258049

ACC2000: How to Disable the Close Button (X) on the Access
Application Window
http://support.microsoft.com/?id=245746

ACC2002: How to Disable the Close Button (X) on the Access
Application Window and the Exit Command on the File Menu
http://support.microsoft.com/?id=300688

Alternatively, take a look here:

http://www.mvps.org/access/general/gen0005.htm

Hope that helps,
Jeff Conrad
Bend, Oregon
 
I goofed once, now I'll try not to repeat.

* create a form
* have its Open event run your code
* set the form in the Startup options (Tools menu, I believe, I don't
have an english version here to check)
 
Hi,

I'm a little confused by your response.
You said it works fine, but you want to know how to make it run on Startup.
If you follow steps 11-14 in the articles it describes setting up an
Autoexec macro.
This macro will run every time the database is opened (unless you hold the
shift key).
The "X" button should then be disabled.

Is that not working for you??
Which Access version?
Works fine here on 97 and 2000.

Jeff Conrad
Bend, Oregon
 
Back
Top