Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DoCmd.CloseDatabase Method (Access)
Collapse the table of content
Expand the table of content

DoCmd.CloseDatabase Method (Access)

Closes the current database.

Version Added: Access 2007

expression .CloseDatabase

expression A variable that represents a DoCmd object.

This method has the same effect as clicking the Microsoft Office Button Ff844747.O12FileMenuButton_ZA10077102(en-us,office.14).gif and then clicking Close Database. If you have any unsaved objects when you use the CloseDatabase method, the dialog boxes that appear are the same as those displayed when you click Close Database.

© 2015 Microsoft