Solved

prohibiting use of the Access Close button

Posted on 2011-02-19
3
274 Views
Last Modified: 2012-05-11
I would like to force users to use a 'quit' button instead of clicking the X in the top RH corner.  I am thinking I can somehow use a variable that is read in the unload event of the form.  However, I am not sure what code to put in the unload event that would 'cancel out' them closing the database using the X.  
0
Comment
Question by:snyperj
  • 2
3 Comments
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 total points
ID: 34935733
see the method use in this link

Prevent Access from closing
http://www.mvps.org/access/general/gen0005.htm
0
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 34935736
here is another method

How to disable the Close button on the Application window and the Exit command on the File menu
http://support.microsoft.com/?kbid=300688
0
 

Author Closing Comment

by:snyperj
ID: 34935743
thanks
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now