Close Macro?

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
 
C

Cheryl Fischer

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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top