Hiding Access X close button

  • Thread starter Thread starter Lisa
  • Start date Start date
L

Lisa

Hi all

Is there any way to hide or disable the X on the top right
corner of the Access window - not forms - the Microsoft
Access Window itself.

Appreciate your help.
Lisa
 
This is a frequent question. Ask yourself what you are really trying to
prevent. In nearly all cases, it isn't that you don't want to prevent the
user from closing Access...you are trying to ensure that some action is
carried out before they close. So, what you should do is create a hidden
form, and place code that determines whether or not the action has been
completed in the Unload event for that form. If it hasn't, you inform the
user and cancel the unload. Anytime they try to close Access, the code will
run. If you disable the close button, your users will probably get
frustrated and kill Access through task manager and defeat your plan.
 
Hi.
Thanks for your advise. The hidden form does sound like
that would work OK.
But I actually DO want to disable the X on the Microsoft
Access window. The application I've created provides a
main menu area which they work from which does have a quit
button on it that they use, the X on the Access window is
just causing them frustration because they accidently hit
it when they're closing reports etc.

I would appreciate knowing how to hide the Access X button
if it's not a big deal.

Thanks for your help
Lisa
 
Back
Top