How eliminate "Close", little red "x" for a DataBase application?

L

ldbg

How eliminate the "Close" Windows option - the little white "x" in a red box
at the top-right corner of the "window" of a running DataBase application?
I need when a user runs a MS Access 2003 application to be prevented from
colsing the application through the "red x". Often closing the DataBase
Application at an inappropriate moment in time damages it.
 
J

John W. Vinson

How eliminate the "Close" Windows option - the little white "x" in a red box
at the top-right corner of the "window" of a running DataBase application?
I need when a user runs a MS Access 2003 application to be prevented from
colsing the application through the "red x". Often closing the DataBase
Application at an inappropriate moment in time damages it.

Well... disrupting the red X standard is pretty heavy-handed, and lots of
users may object.

Prevent the damage instead.

I'd suggest having a constantly-open Form in the application (it could be your
switchboard, or an invisible form opened in the switchboard or startup form's
Open event); put code in its Close event to do whatever cleanup you need done.
The user hitting the red X will attempt to close the form, and your code can
either cancel the close or take care of the cleanup.

You can't stop the user hitting ctrl-alt-del and killing the process, nor from
pressing the Power switch on their PC.

John W. Vinson [MVP]
 
L

ldbg

Thank you very much, John.

I was thinking to do something similar, but is there a way to modify the
application, so the user runs it in a special window without anything
available to him/her for interfering with the flow of the process (Except
Ctrl-Alt-Del and turning the power off).

ldbg
 

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