Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to open an Access database from within Excel using VBA. Here is
my code: Dim MyAccess As Access.Application Set MyAccess = CreateObject("Access.Application") MyAccess.Visible = True MyAccess.OpenCurrentDatabase ("\\server\folder\xyz.mdb") The last line of code triggers the following error message: Run-time error '7866' Microsoft Office Access can't open the database because it is missing, or opened exclusively by another user. The database is not, in fact, opened exclusively by another user. The error message appears when the Access macro security level is set to medium. The error message does not appear when the Access macro security level is set to low. Is there any way to avoid this error, or bypass the error and still open the database, without changing the Access macro security level to low? Thanks, -- Mary S. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Difficulty opening files with Excel | Excel Discussion (Misc queries) | |||
Opening an ACCESS db from the VBE in EXCEL | Excel Worksheet Functions | |||
difficulty opening userform | Excel Programming | |||
Opening Excel Application difficulty | Excel Discussion (Misc queries) | |||
Opening Excel via Access | Excel Programming |