Quit Method (DoCmd Object)

Quit Method (DoCmd Object)

See Also         Example         Applies To

The Quit method of the DoCmd object carries out the Quit action in Visual Basic. For more information on how the action and its argument work, see the action topic.

Syntax

DoCmd.Quit [options]

The Quit method has the following argument.

Argument Description
options One of the following intrinsic constants:
  acQuitPrompt
acQuitSaveAll (default)
acQuitSaveNone
  If you leave this argument blank, the default constant (acQuitSaveAll) is assumed.

Remarks

The Quit method of the DoCmd object 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.