Can I disable the "X" for the app?

P

PamelaDV

I am wondering if there is a way to disable the "X" used to close the
Access application window? I know how to disable it for individual
forms, but I would like to disable it for the application in general
and force users to use a button on the switchboard to close (because I
run important code on the close of the database from that button).

Any ideas are always appreciated.


Thanks!
 
S

Stefan Hoffmann

hi,
I am wondering if there is a way to disable the "X" used to close the
Access application window? I know how to disable it for individual
forms, but I would like to disable it for the application in general
and force users to use a button on the switchboard to close (because I
run important code on the close of the database from that button).
Use the form close event of a hidden form.


mfG
--> stefan <--
 
N

Nick via AccessMonster.com

Pamela,

I don't believe there is a way to disable the Access app's X button. Even if
there was, there is always a more malicious way to kill the program (Ctrl-Alt-
Delete) and so on.

I had the same problem with important code needing to be run on the DB close,
and I ended up placing that code in the Unload event of my main switchboard.
That way, even if the user closes the whole Access window through the X
button, the Unload event will still run (because the switchboard is being
removed) and the code will still execute.

HTH,
Nick
 
K

Keith Wilby

PamelaDV said:
I am wondering if there is a way to disable the "X" used to close the
Access application window? I know how to disable it for individual
forms, but I would like to disable it for the application in general
and force users to use a button on the switchboard to close (because I
run important code on the close of the database from that button).

Any ideas are always appreciated.


Thanks!

Answered in another group. Please don't multi-post.

Keith.
 

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