C
Crystal
I've got a module that opens a database (DatabaseB) and
runs a procedure stored in that database. We'll call my
current database "DatabaseA"
From DatabaseA, the user will open DatabaseB and run the
procedure "RunUpdate"
The code I'm using for this is:
Dim appRemoteDB as Access.Application
Set appRemoteDB = New Access.Application
appRemoteDB.OpenCurrentDatabase "DatabaseBPathname"
appRemoteDB.Run "RunUpdate"
appRemoteDB.CloseCurrentDatabase
(thank you to whoever gave me that code last week!)
The problem is, the "RunUpdate" module stored in DatabaseB
uses DAO to write to a table in DatabaseA. The code there
is:
Dim db as DAO.Database
Dim rst as DAO.Recordset
set db = OpenDatabase("DatabaseAPathname", False)
set rst = db.OpenRecordset("TableName",dbOpenDynaset)
Even though I've coded DatabaseA to not be opened
exclusively, it still is because I already have it open in
the Access window. I keep getting the error that I
already have this database opened exclusively on another
machine (my machine).
How do I fix this?
Any help would be greatly appreciated,
Crystal
runs a procedure stored in that database. We'll call my
current database "DatabaseA"
From DatabaseA, the user will open DatabaseB and run the
procedure "RunUpdate"
The code I'm using for this is:
Dim appRemoteDB as Access.Application
Set appRemoteDB = New Access.Application
appRemoteDB.OpenCurrentDatabase "DatabaseBPathname"
appRemoteDB.Run "RunUpdate"
appRemoteDB.CloseCurrentDatabase
(thank you to whoever gave me that code last week!)
The problem is, the "RunUpdate" module stored in DatabaseB
uses DAO to write to a table in DatabaseA. The code there
is:
Dim db as DAO.Database
Dim rst as DAO.Recordset
set db = OpenDatabase("DatabaseAPathname", False)
set rst = db.OpenRecordset("TableName",dbOpenDynaset)
Even though I've coded DatabaseA to not be opened
exclusively, it still is because I already have it open in
the Access window. I keep getting the error that I
already have this database opened exclusively on another
machine (my machine).
How do I fix this?
Any help would be greatly appreciated,
Crystal