P
Pastor Del
I build an application that controls the visibility of command bars while it
is open. The command bars are restored to the user's previous settings when
the application is closed with the Close button I provided . The problem is
that some users are in the habit of closing the DB with the X in the upper
right corner or with alt/F4. This obviously by-passes my code. I've tried
opening and hiding a form when the DB opens and putting my command bar code
in the Form_Close event to restore them when the DB closes. This seems to be
an unreliable method. To improve performance I moved the code to the
Form_Unload event. It works better but I don't have the confidence factor
I'd like to have.
Here's my question. What is a reliable way to ensure code is executed when
the DB is closed?
is open. The command bars are restored to the user's previous settings when
the application is closed with the Close button I provided . The problem is
that some users are in the habit of closing the DB with the X in the upper
right corner or with alt/F4. This obviously by-passes my code. I've tried
opening and hiding a form when the DB opens and putting my command bar code
in the Form_Close event to restore them when the DB closes. This seems to be
an unreliable method. To improve performance I moved the code to the
Form_Unload event. It works better but I don't have the confidence factor
I'd like to have.
Here's my question. What is a reliable way to ensure code is executed when
the DB is closed?