closing access with button vs X

G

Guest

I got a message regarding one of our databases today that confused me.

The message said "Be sure to always click here to close the database or
corruption may occur. Do not use the X in the upper right hand corner to exit
the database."

The code attached to the button is "DoCmd.Quit"

Can anyone explain why this would be different than pressing the X?

Thanks!
 
R

Rick Brandt

PetNetwork said:
I got a message regarding one of our databases today that confused me.

The message said "Be sure to always click here to close the database
or corruption may occur. Do not use the X in the upper right hand
corner to exit the database."

The code attached to the button is "DoCmd.Quit"

Can anyone explain why this would be different than pressing the X?

Thanks!

It wouldn't. Whoever authored that message is confused.
 
G

George Nicholson

If the only code attached to the button is DoCmd.Quit, then it isn't any
different from clicking the top right X.

There are some instances where the developer might want to run code prior to
closing a form, app, etc., and it becomes important to control how the user
exits the app. It doesn't sound like this is one of those cases. The message
could simply be leftover from some functionality that was either removed or
never implemented by the developer, or from a form/template that was
imported/used and never fully modified to fit the requirements of the
current app.

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