Quit Microsoft Access.
Syntax Quit(Option) Key Option The action to take when quitting Access: acQuitPrompt (0) Ask whether to save any changes. acQuitSaveAll (1) (Default) Save all objects without displaying a dialog box. acQuitSaveNone (2) Quit Microsoft Access without saving any objects.
DoCmd.Quit was added to provide backward compatibility for running the Quit action in Visual Basic code in Microsoft Access 95. It's recommended that you use the existing Quit method of the Application object instead.
Examples
'Exit the database
Quit
“You ain’t nothin’ but a hound dog
Quit snoopin’ round my door
You ain't nothin’ but a hound dog
Quit snoopin’ round my door” ~ Leiber and Stoller
Related:
CloseDatabase - Close the database.