I received the below error message when I built a macro to kick off a function and quit to close MS Access.
I have a few questions that I hope the Access Gods can answer for me:
1. I created the database in the 2007 version. It is not read-only. When ask for elements to put in the macro, the system should only show me elements that is available for the user to use. If I am able to select the 'Quit' why am I getting the error below?
2. Here is what I have done to avoid this error:
- Made the directory where the database resides Trusted.
- I have made all content available and enabled macros at the opening of the database as a default.
-I have used the DoCmd.Quit in my code and I still get a 2046 error.
Can any explain why I can't quit and exit Access on command?
The command or action 'Quit' isn’t available now.
*You may be in a read-only database or an unconverted database from an earlier version of Microsoft Office Access.
*The type of object applies to isn't currently selected or isn't in the active view.
Use only those commands and macro actions that are currently available for this database.
I have a few questions that I hope the Access Gods can answer for me:
1. I created the database in the 2007 version. It is not read-only. When ask for elements to put in the macro, the system should only show me elements that is available for the user to use. If I am able to select the 'Quit' why am I getting the error below?
2. Here is what I have done to avoid this error:
- Made the directory where the database resides Trusted.
- I have made all content available and enabled macros at the opening of the database as a default.
-I have used the DoCmd.Quit in my code and I still get a 2046 error.
Can any explain why I can't quit and exit Access on command?
The command or action 'Quit' isn’t available now.
*You may be in a read-only database or an unconverted database from an earlier version of Microsoft Office Access.
*The type of object applies to isn't currently selected or isn't in the active view.
Use only those commands and macro actions that are currently available for this database.