DoCmd.Quit vs Application.Quit (1 Viewer)

Guus2005

AWF VIP
Local time
Today, 07:44
Joined
Jun 26, 2007
Messages
2,641
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

Cool bop aficionado
Local time
Today, 07:44
Joined
Sep 5, 2002
Messages
2,141
As far as I know, the DoCmd.Quit is to leave/close an object and the Application.Quit is to close Acces completely.
 

LPurvis

AWF VIP
Local time
Today, 06:44
Joined
Jun 16, 2008
Messages
1,269
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

AWF VIP
Local time
Today, 07:44
Joined
Jun 26, 2007
Messages
2,641
Seems i'd better use Application.Quit then.

Gentlemen, Thanks!
 

Users who are viewing this thread

Top Bottom