DavidRobertArchibald
Technical User
In our POS dbase I'm currently trying to run a Macro in a second database from a for in the first, I tried the following:
Sub AccessTest1()
Dim A As Object
Set A = CreateObject("Access.Application")
A.Visible = False
A.OpenCurrentDatabase ("C:\Documents and Settings\David Archibald\My Documents\GBL Database Project\Pending.mbd")
A.DoCmd.RunMacro "GBLPost"
End Sub
But I keep getting "Run-time error '7866': Microsoft Office Access can't open the database because it is missing, or opened exclusivly by another user"
I checked to make sure that there were no other instances of MSACCESS running (other then the one I'm runnning the macro from). Does anyone know how I can do this?
arch
Sub AccessTest1()
Dim A As Object
Set A = CreateObject("Access.Application")
A.Visible = False
A.OpenCurrentDatabase ("C:\Documents and Settings\David Archibald\My Documents\GBL Database Project\Pending.mbd")
A.DoCmd.RunMacro "GBLPost"
End Sub
But I keep getting "Run-time error '7866': Microsoft Office Access can't open the database because it is missing, or opened exclusivly by another user"
I checked to make sure that there were no other instances of MSACCESS running (other then the one I'm runnning the macro from). Does anyone know how I can do this?
arch