Timer To Shut down database when idle

  • Thread starter Lamont via AccessMonster.com
  • Start date
L

Lamont via AccessMonster.com

I have a database that I've just took over. It has timer code to shut down
the database if when on the main form , it is idle for 5 minutes.

The problem that I'm having is that this is a network database, and everytime
the database shuts down this way while other people are in it, it causes
Access to lock up. It prevents others from going back into it and prompts to
repair the database. But when you click "yes" to repair, it says that you do
not have exclusive access to repair the database. However, no one is in the
database. The only thing that clears it up is the nightly refresh of the
network drives.

Does anyone have a solution to prevent the lockout?

Thanks,
Lamont
 
D

Douglas J Steele

Do you have each user accessing the same database? That's not a good idea.

Your application should be split into a front-end (containing the queries,
forms, reports, macros and modules), linked to a back-end (containing the
tables and relationships). Only the back-end should be on the server: each
user should have his/her own copy of the front-end, preferably on their hard
drive (as opposed to on a network drive)
 
J

JethroUK©

i have a split my database front and back end - i am creating some front
ends for other staff - i understand that any particular record will be
locked during editing by any front end - but am i right in thinking they
will be able to share the back end tables without setting any special
sharing permissions?


Douglas J Steele said:
Do you have each user accessing the same database? That's not a good idea.

Your application should be split into a front-end (containing the queries,
forms, reports, macros and modules), linked to a back-end (containing the
tables and relationships). Only the back-end should be on the server: each
user should have his/her own copy of the front-end, preferably on their hard
drive (as opposed to on a network drive)

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


Lamont via AccessMonster.com said:
I have a database that I've just took over. It has timer code to shut down
the database if when on the main form , it is idle for 5 minutes.

The problem that I'm having is that this is a network database, and everytime
the database shuts down this way while other people are in it, it causes
Access to lock up. It prevents others from going back into it and
prompts
to
repair the database. But when you click "yes" to repair, it says that
you
 
D

Douglas J Steele

As long as all users have Change access (Read, Write, Delete and eXecute) to
the folder where the back-end database exists, you should have no problems.
(In case it isn't apparent, I'm talking NTFS permissions on the folder:
nothing to do with Access permissions)

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


JethroUK© said:
i have a split my database front and back end - i am creating some front
ends for other staff - i understand that any particular record will be
locked during editing by any front end - but am i right in thinking they
will be able to share the back end tables without setting any special
sharing permissions?
 
J

JethroUK©

Douglas J Steele said:
As long as all users have Change access (Read, Write, Delete and eXecute) to
the folder where the back-end database exists, you should have no problems.
(In case it isn't apparent, I'm talking NTFS permissions on the folder:
nothing to do with Access permissions)

I understand the windows permissions bit (the company have heirachy of
network permissions already setup) and all staff have read/write to the back
end folder - just the Access table sharing i wasn't sure about - thanks very
much
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top