Controlling Quit

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

H

Is there a way to prevent users exiting my app using the cross in the top RHS of Access. I only want the user to be able to quit through an exit button on the menu so that I can control the exit process

Thanks in advanc

Barry
 
The workaround includes putting an OnClose event on a form
that is always open. If you don't have one, use a hidden
form.

You will have to have a global flag saying that it's okay
to quit, and the OnClose event will look for that flag, if
it's okay to quit, then close the form. Otherwise, set
the Cancel argument to False.


Chris Nebinger

-----Original Message-----
Hi

Is there a way to prevent users exiting my app using the
cross in the top RHS of Access. I only want the user to
be able to quit through an exit button on the menu so that
I can control the exit process.
 
Back
Top