newcoder54
Technical User
I am trying to run another Access 97 database from within my currently open database. The goal is to use some buttons on my main database to run others that move data around.
This code kind of works but never finishes and something sure is not right. Comments please - Larry
Function RunDownloader()
'Need to run one Access 97 from another Access 97
Dim AccessApp As Object
Set AccessApp = CreateObject("Access.Application")
AccessApp.Visible = False
AccessApp.OpenCurrentDatabase ("C:\Download\downloader.mdb")
AccessApp.Run "RemoteRun"
AccessApp.Quit ' Quit "downloader.mdb" 'this seems to be the error, the application does seem to do its job but never quite quits.
Set AccessApp = Nothing ' releases the reference.
End Function
This code kind of works but never finishes and something sure is not right. Comments please - Larry
Function RunDownloader()
'Need to run one Access 97 from another Access 97
Dim AccessApp As Object
Set AccessApp = CreateObject("Access.Application")
AccessApp.Visible = False
AccessApp.OpenCurrentDatabase ("C:\Download\downloader.mdb")
AccessApp.Run "RemoteRun"
AccessApp.Quit ' Quit "downloader.mdb" 'this seems to be the error, the application does seem to do its job but never quite quits.
Set AccessApp = Nothing ' releases the reference.
End Function