Application.Quit does not work when user has Message box open

  • Thread starter Thread starter Kishor Mepani
  • Start date Start date
K

Kishor Mepani

I want to be able to close an application automatically by
setting a flag. I have the code for this, however if the
user has a message box open, Access minimises instead of
closing. Does anyone have a workaround?
 
Is your shut-down routine generating the message box? If
so, use a form instead. You can close that via its own
timer event and avoid the user intervention required by a
message box.
 
I doubt that you'll be able to close Access while any modal messagebox or
form is open. You'd have to display your messages using a non-modal form
designed to look like a messagebox. But, a non-modal messagebox is a nasty
thing to have. The user can just ignore the message, & start doing other
things within the application!

HTH,
TC
 
Back
Top