DoCmd.Quit vs Application.Quit

Guus2005

AWF VIP
Local time
Tomorrow, 00:22
Joined
Jun 26, 2007
Messages
2,642
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...
 
As far as I know, the DoCmd.Quit is to leave/close an object and the Application.Quit is to close Acces completely.
 
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).
 
Seems i'd better use Application.Quit then.

Gentlemen, Thanks!
 

Users who are viewing this thread

Back
Top Bottom