Table of contents
TOC
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.

Syntax

expression. CloseDatabase

expression A variable that represents a DoCmd object.

Remarks

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

Concepts

DoCmd Object

© 2018 Microsoft