Table of contents
Collapse the table of content
Expand the table of content

DoCmd.CloseDatabase Method (Access)

office 365 dev account|Last Updated: 1/25/2018
2 Contributors

Closes the current database.


expression. CloseDatabase

expression A variable that represents a DoCmd object.


This method has the same effect as clicking the Microsoft Office Button File menu button 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.

See also


DoCmd Object

© 2018 Microsoft