Close Macro?

  • Thread starter Thread starter Robert Williamson
  • Start date Start date
R

Robert Williamson

I have a database with an exit button on the Main Menu
whcih will run certain procedures before shutting the
database down.

However I have noticed that if I click on the X in the top
right hand corner of the window access closes without
running the procedures.

Is there anyway to have a close down macro that performs
in a similar fashion to that of autoexec at database
startup or is there a way to disable the main Access
windows close control button.

Thanks
 
Robert,

You can set the Close Button property of your Form to 'No', which should
force your less inventive users to use your Exit button. Or, you can move
the code found behind your Exit button to the Close Event of your form.

hth,
 
Back
Top