Disable the Close button for Access?

  • Thread starter Gulf Coast Electric
  • Start date
G

Gulf Coast Electric

Can the Close button be disabled for Access?
If so how?
Using Custom Menu!
 
B

Bas Cost Budde

Don't think so! That is an issue for your operating system (the window
manager)
 
J

Jeff Conrad

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
 
G

Gulf Coast Electric

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
 
B

Bas Cost Budde

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

Jeff Conrad

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
 

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