Hi,
In order to complete pauloaquia solution, I would you to use this:
dim obj as object
Dim accApp As Object
Set accApp = CreateObject("access.appli
And at the end do:
Set accApp = Nothing
instead of your
Dim accApp As Access.Application
Set accApp = New Access.Application
That way you will prevent a bug that leave Access in memory when you close the application.
Hope it will help
Phetu
Main Topics
Browse All Topics





by: pauloaguiaPosted on 2003-03-05 at 14:11:33ID: 8075375
After adding the Microsoft Access Object Library to your references (Tools -> References) you can use code like the following:
"c:\db1.mdb"
Sub startAcc()
Dim accApp As Access.Application
Set accApp = New Access.Application
accApp.Visible = True
accApp.OpenCurrentDatabase
accApp.DoCmd.Maximize
accApp.Quit
End Sub
Hope this helps
Paulo