P
Phred Bear
I want to run some code in a db from another DB. The code seems to run OK
but I am left with an invisible instance of Access in my Windows Task
Manager. I don't seem to be tidying up when I release my object. I am then
left with a ***.ldb file which I have to delete manualy after I have closed
the instance of Access.in the Task Manager.
When I started, it worked fine but I have done something which stops it from
closing and I can't figure out what it is.
Here is a representative routine which causes the problem.
Private Sub RunAuto()
Dim RemoteDB As Object
Set RemoteDB = CreateObject("Access.application")
Set RemoteDB = GetObject("d:\Investigation.mdb")
RemoteDB.Run EmptyTables ' EmptyTables is the name of a procedure in the
target DB. It works fine in it's own DB
Set RemoteDB = Nothing
Application.Quit
End Sub
but I am left with an invisible instance of Access in my Windows Task
Manager. I don't seem to be tidying up when I release my object. I am then
left with a ***.ldb file which I have to delete manualy after I have closed
the instance of Access.in the Task Manager.
When I started, it worked fine but I have done something which stops it from
closing and I can't figure out what it is.
Here is a representative routine which causes the problem.
Private Sub RunAuto()
Dim RemoteDB As Object
Set RemoteDB = CreateObject("Access.application")
Set RemoteDB = GetObject("d:\Investigation.mdb")
RemoteDB.Run EmptyTables ' EmptyTables is the name of a procedure in the
target DB. It works fine in it's own DB
Set RemoteDB = Nothing
Application.Quit
End Sub