Access termination

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

Guest

Hi Experts!
Does anyone know if it's possible to catch some kind of event when Access is
closing, so that one can ask the user whether he wants to terminate or not.
Have been looking everwhere in the documentation without being able to find
anything. Have also noted that in some cases Access asks the shutdown
question by itself. Not consistently though.
Thanks for any help with this
Anders
 
Anders said:
Hi Experts!
Does anyone know if it's possible to catch some kind of event when
Access is closing, so that one can ask the user whether he wants to
terminate or not. Have been looking everwhere in the documentation
without being able to find anything. Have also noted that in some
cases Access asks the shutdown question by itself. Not consistently
though.
Thanks for any help with this
Anders

Use a form that is always open and in its Unload event prompt the user.
That event will fire if Access is terminated. You can set the Cancel
argument of that event to True to stop Access from closing.

If you don't have a form that is always open then open a hidden form at
startup specifically for this purpose.
 
Anders Norell said:
Hi Experts!
Does anyone know if it's possible to catch some kind of event when Access
is
closing, so that one can ask the user whether he wants to terminate or
not.
Have been looking everwhere in the documentation without being able to
find
anything. Have also noted that in some cases Access asks the shutdown
question by itself. Not consistently though.
Thanks for any help with this
Anders

Have a hidden form open at startup and ask the question in it's Unload
event.

Regards,
Keith.
www.keithwilby.com
 
Back
Top