Access will not close (1 Viewer)

dbalargin

Member
Local time
Today, 06:57
Joined
Dec 31, 2002
Messages
39
I access application1 from application2 using this code.

Dim Settlement As Object
Set Settlement = GetObject("C:\Settlement3.mdb")

Settlement.DoCmd.RunCommand acCmdAppMinimize
DoCmd.Quit

Application2 closes and application1 is now open.

Problem...when I want to close application1, it closes the database, but leaves Access open.

Why is this?!?
 

ghudson

Registered User.
Local time
Today, 06:57
Joined
Jun 8, 2002
Messages
6,195
Here are a couple of ways to do it...

Application.Quit acExit
DoCmd.RunCommand acCmdExit
DoCmd.Quit acQuitSaveNone

HTH
 

dbalargin

Member
Local time
Today, 06:57
Joined
Dec 31, 2002
Messages
39
That worked...thanks a lot!
 

Users who are viewing this thread

Top Bottom