G
Guest
I'm looking for a way to verify that a database is open after running the
OpenDatabase method.
I purchased and ran the AccessAnalyzer (very cool tool) and one of the
peformance recommendations was to open the database for linked tables. I've
set the following code to run OnOpen event of my splashscreen:
'open Back_End
Dim wrkJet As Workspace
Dim dbscurrent As Database
'Create Microsoft Jet Workspace object.
Set wrkJet = CreateWorkspace("", "admin", "", dbUseJet)
' Open Database object from saved Microsoft Jet database
Set dbscurrent = wrkJet.OpenDatabase("O:\SalesDB\SalesDB_be.mdb", False)
How can I verify that the database is actually opened? (checked the server
for open files and the SalesDB_be.mdb database does not appear as opened).
Thanks in advance for your help.
Gary
OpenDatabase method.
I purchased and ran the AccessAnalyzer (very cool tool) and one of the
peformance recommendations was to open the database for linked tables. I've
set the following code to run OnOpen event of my splashscreen:
'open Back_End
Dim wrkJet As Workspace
Dim dbscurrent As Database
'Create Microsoft Jet Workspace object.
Set wrkJet = CreateWorkspace("", "admin", "", dbUseJet)
' Open Database object from saved Microsoft Jet database
Set dbscurrent = wrkJet.OpenDatabase("O:\SalesDB\SalesDB_be.mdb", False)
How can I verify that the database is actually opened? (checked the server
for open files and the SalesDB_be.mdb database does not appear as opened).
Thanks in advance for your help.
Gary