R
rodneykocot
How can I get the OpenDatabase method to work? I have
tried to use OpenDatabase to open a database on a
different drive (H than the drive that the CurrentDB
(C is on. I have attempted this several times in
Access97, Access2000, ... and can not get it to work.
Please Help, sample attempts follow:
Dim wsp As Workspace
Dim AuditDB As Database
Set wsp = DBEngine.Workspaces(0)
AuditDBFileName = CStr(InAS400SystemAudits
("databasefilename"))
'Set AuditDB = Workspaces(0).OpenDatabase
(AuditDBFileName)
'Set AuditDB = DBEngine.Workspaces(0).OpenDatabase
(AuditDBFileName)
'Set AuditDB = OpenDatabase(AuditDBFileName)
Set AuditDB = wsp.OpenDatabase(AuditDBFileName)
The error is "Invalid procedure call or argument" Error
#5. I have duplicated the code in the help examples and
still get the same error.
tried to use OpenDatabase to open a database on a
different drive (H than the drive that the CurrentDB
(C is on. I have attempted this several times in
Access97, Access2000, ... and can not get it to work.
Please Help, sample attempts follow:
Dim wsp As Workspace
Dim AuditDB As Database
Set wsp = DBEngine.Workspaces(0)
AuditDBFileName = CStr(InAS400SystemAudits
("databasefilename"))
'Set AuditDB = Workspaces(0).OpenDatabase
(AuditDBFileName)
'Set AuditDB = DBEngine.Workspaces(0).OpenDatabase
(AuditDBFileName)
'Set AuditDB = OpenDatabase(AuditDBFileName)
Set AuditDB = wsp.OpenDatabase(AuditDBFileName)
The error is "Invalid procedure call or argument" Error
#5. I have duplicated the code in the help examples and
still get the same error.