Close the database (Access 2007 +)
Syntax DoCmd.CloseDatabase
This method has the same effect as clicking the Microsoft Office Button and then clicking Close Database.
If you have any unsaved objects, the dialog boxes that appear are the same as those displayed when you click Close Database.
Example
DoCmd.CloseDatabase
“A good opening and a good ending make for a good film provided they come close together” ~ Federico Fellini
Related:
Close - Close a form/report/window
Quit - Quit Microsoft Access