View Full Version : DoCmd.Quit vs Application.Quit


Guus2005
10-23-2008, 11:06 PM
What is the difference between DoCmd.Quit and Application.Quit?

Is it that when you can't quit with DoCmd.Quit you can using the Application.Quit command?

Perhaps there isn't a difference?

I think it's the latter but you can't be too sure...

Ron_dK
10-23-2008, 11:49 PM
As far as I know, the DoCmd.Quit is to leave/close an object and the Application.Quit is to close Acces completely.

LPurvis
10-24-2008, 04:56 AM
They'll both do the same thing - the older DoCmd option is more for legacy considerations though.
http://msdn.microsoft.com/en-us/library/aa221549(office.11).aspx

(The DoCmd methods, often with RunCommand, traditionally include options to provide methods for the UI menubar actions. More and more the Application object has been assuming responsibility - for example XML import/export methods).

Guus2005
10-24-2008, 05:27 AM
Seems i'd better use Application.Quit then.

Gentlemen, Thanks!