M
Margaret Bartley
DAO 3.6 Access 2000:
Whenever I try to open a database that is read-only, I get
the error 3051 - that I cannot open the file because it is
opened exclusively by another user, or I don't have
permission to read it.
I am working on my local machine, and I know it's not opened
by another user, besides, I get this message whenever, and
only, when I try to open a read-only file. None of these
files have any security on them. I can open them through
the user interface.
This is the code I am using:
dim ws as Workspace
dim RemoteDB as Database
set ws =DBEngine.Workspaces(0)
set RemoteDB=ws.OpenDatabase("c:\MyDB.mdb",,True)
The last statement gives me an error only when, and always
when I am trying to open a read-only database.
Thanks in advance for any help.
Whenever I try to open a database that is read-only, I get
the error 3051 - that I cannot open the file because it is
opened exclusively by another user, or I don't have
permission to read it.
I am working on my local machine, and I know it's not opened
by another user, besides, I get this message whenever, and
only, when I try to open a read-only file. None of these
files have any security on them. I can open them through
the user interface.
This is the code I am using:
dim ws as Workspace
dim RemoteDB as Database
set ws =DBEngine.Workspaces(0)
set RemoteDB=ws.OpenDatabase("c:\MyDB.mdb",,True)
The last statement gives me an error only when, and always
when I am trying to open a read-only database.
Thanks in advance for any help.