terminating Access

  • Thread starter Robert M via AccessMonster.com
  • Start date
R

Robert M via AccessMonster.com

Does anyone know how I could prevent - or warn - users from closing Access
2000 directly? I would prefer that they use my Exit button and associated
code so that I can execute my application clean up code and then close/exit
Access 'gracefully'.
 
K

Keith W

Robert M via AccessMonster.com said:
Does anyone know how I could prevent - or warn - users from closing
Access
2000 directly? I would prefer that they use my Exit button and associated
code so that I can execute my application clean up code and then
close/exit
Access 'gracefully'.
Have your exit code run frm your form's Unload event - you can make use of
the Cancel property in an "Are you sure" message box. That way your code
will run regardless of how the form is closed.

HTH - Keith.
www.keithwilby.com
 
R

Robert M via AccessMonster.com

Thanks, Keith. I'll give your suggestion a try.

Keith said:
Have your exit code run frm your form's Unload event - you can make use of
the Cancel property in an "Are you sure" message box. That way your code
will run regardless of how the form is closed.

HTH - Keith.
www.keithwilby.com
 
Top