I have a macro called Abatemac call a funtion called TestFunction that calls a function called Abatement.
I get an error message "'Quit' isn't available" using the DoCmd.Quit in the Abatement function. If I run the function directly the DoCmd.Quit executes with out a problem.
If I add the Quit/Exit command to the Abatemac macro I get the below error message:
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 the action applies to isn’t currently select or isn’t in the active view.
Do I have to add a reference to use the quit command? Why would the system give me the option to use command and then say it is unavailable?