P
Paul
I've got a split Access 2003 database where the back end is on a shared
network drive and the front ends are on the users' C drives. I've noticed
that sometimes the back end mdb file thinks there is an open connection with
one or more of the front ends, even after those front end files have been
closed. When this occurs, several things are evident:
-- The ldb file for the back end does not close;
-- When I open that ldb file with Notepad it displays the ID numbers of the
computers that previously had a connection but subsequently closed, and
-- the back end mdb file will not permit any changes to the tables, and will
not allow me to run the Compact and Repair Database command. Instead, it
displays a message that the file is opened exclusively by another user, even
when I'm the only one that has the front end open, and
-- it won't even let me delete, rename or overwrite the back end mdb file,
again stating that it's being used by another user or program.
I realize that the MS knowledge base has articles to the effect that network
interruptions or front end crashes can cause this, but we haven't
experienced either of those events.
Two questions:
1. What can I do to convince the back end file that no one has it open
(other than me), so that I can modify tables and/or Compact and Repair the
file?
2. What can I do to prevent this from occurring in the future? I'm using
the VBA command DoCmd.Quit to close the front end databases. Is there some
additional VBA code I can add to that procedure so it will let the back end
know that we're closing down the connection?
Thanks in advance,
Paul
network drive and the front ends are on the users' C drives. I've noticed
that sometimes the back end mdb file thinks there is an open connection with
one or more of the front ends, even after those front end files have been
closed. When this occurs, several things are evident:
-- The ldb file for the back end does not close;
-- When I open that ldb file with Notepad it displays the ID numbers of the
computers that previously had a connection but subsequently closed, and
-- the back end mdb file will not permit any changes to the tables, and will
not allow me to run the Compact and Repair Database command. Instead, it
displays a message that the file is opened exclusively by another user, even
when I'm the only one that has the front end open, and
-- it won't even let me delete, rename or overwrite the back end mdb file,
again stating that it's being used by another user or program.
I realize that the MS knowledge base has articles to the effect that network
interruptions or front end crashes can cause this, but we haven't
experienced either of those events.
Two questions:
1. What can I do to convince the back end file that no one has it open
(other than me), so that I can modify tables and/or Compact and Repair the
file?
2. What can I do to prevent this from occurring in the future? I'm using
the VBA command DoCmd.Quit to close the front end databases. Is there some
additional VBA code I can add to that procedure so it will let the back end
know that we're closing down the connection?
Thanks in advance,
Paul