PC Review


Reply
Thread Tools Rate Thread

Close button on ACCESS window

 
 
=?Utf-8?B?QlM=?=
Guest
Posts: n/a
 
      30th Jan 2006
How do I disable the close button on the ACCESS window to stop users of my
application from closing the application without using the relevant form to
ensure that all the necessary close down prodcedures are run correctly.

Anyone have any ideas.
--
BS
 
Reply With Quote
 
 
 
 
Wayne Morgan
Guest
Posts: n/a
 
      30th Jan 2006
As a work around for this, when you open your database, open a hidden form.
In the Unload event of that form you can Cancel the unload if predetermined
conditions haven't been met. Access will try to close this form before
closing itself. When you cancel the unload, you prevent Access from closing.

For the predetermined condition, create a global variable that you will set
the value of in your close routine. Check the value of this variable in the
Unload event mentioned above and if it's not correct, cancel the unload and
popup a message informing the user of the problem.

--
Wayne Morgan
MS Access MVP


"BS" <(E-Mail Removed)> wrote in message
news:0AEE2B93-F915-4CCF-BB2B-(E-Mail Removed)...
> How do I disable the close button on the ACCESS window to stop users of my
> application from closing the application without using the relevant form
> to
> ensure that all the necessary close down prodcedures are run correctly.
>
> Anyone have any ideas.
> --
> BS



 
Reply With Quote
 
Van T. Dinh
Guest
Posts: n/a
 
      30th Jan 2006
See The Microsoft Knowledge Base article:

http://support.microsoft.com/?id=300688

--
HTH
Van T. Dinh
MVP (Access)



"BS" <(E-Mail Removed)> wrote in message
news:0AEE2B93-F915-4CCF-BB2B-(E-Mail Removed)...
> How do I disable the close button on the ACCESS window to stop users of my
> application from closing the application without using the relevant form
> to
> ensure that all the necessary close down prodcedures are run correctly.
>
> Anyone have any ideas.
> --
> BS



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Access 2007] Problem to disable the Close Button (X) on the Access Application Window David Berthemet Microsoft Access 0 28th Feb 2007 11:33 AM
How to close the parent and all child forms together at once when click on parent window's close button X. VBLearner Microsoft VB .NET 2 25th Sep 2006 05:57 AM
IE Close button will not close a window Robin Windows XP Internet Explorer 0 26th Jan 2004 06:25 PM
How to disable the Window close 'X' button in any open window Amit Microsoft Windows 2000 1 11th Sep 2003 12:52 PM
close button does not close window tim Windows XP Basics 0 9th Sep 2003 02:13 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:36 PM.