Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

You can use the CloseDatabase action to close the current database.

Note: The CloseDatabase macro action is not available in Access web apps.

Setting

The CloseDatabase action does not have any arguments.

Remarks

  • Access will not run any actions that follow the CloseDatabase action in a macro.

  • This action has the same effect as clicking File > Close. If there are any unsaved objects open when you run the CloseDatabase action, the dialog boxes that appear are the same as those displayed when you click Close.

  • To run the CloseDatabase action in a Visual Basic for Applications (VBA) module, use the CloseDatabase method of the DoCmd object.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×