Access resides in memory

aleb

Registered User.
Local time
Today, 21:11
Joined
Jun 25, 2003
Messages
296
I have seen this problem somewhere but could not find the solution.

I have dbase opened with db window hidden. When exiting the db, access application resides in the memory.
I can see it in task manager, processes.

the code i have is:

Private Sub cmdExit_Click()
CloseCurrentDatabase
DoCmd.Quit acQuitSaveAll
End Sub

What is wrong with it ?
 
Aleb,

I think that once you close the DB, the "DoCmd.Quit" has nothing to
operate on. It's like you closed the Database Window ... Access is still
there, but your app is gone.

I've never used the "CloseCurrentDatabase" method ...

Also, the "DoCmd.Quit acQuitSaveAll" would seem to apply to saving changes
to form designs.

Why not just use "DoCmd.Quit"?

Wayne
 
Hmmm ...
This method was as an example from MS.
But ... :) DoCmd.quit worked fine.

Thank you
 
Last edited:

Users who are viewing this thread

Back
Top Bottom