Argument | Description | |
option | An intrinsic constant that specifies what happens to unsaved objects when you quit Microsoft Access. This argument can be any of the following constants. | |
Constant | Description | |
acSaveYes | (Default) Saves all objects without displaying a dialog box. | |
acPrompt | Displays a dialog box that asks whether you want to save any database objects that have been changed but not saved. | |
acExit | Quits Microsoft Access without saving any objects. |
Private Sub AppExit_Click()
Application.Quit acPrompt
End Sub