how to gracefully close an access db on a shared folder

O

OM

Hi,

I have an access database that is shared by the network users. These
users tend to forget to close the applications when they finish their
work at the end of the day. This makes the server unable to backup the
file (being open). Can someone advice me how to gracefully close the
file when all users are longer using the db (even though their
application might still be open)?

Thanks
 
P

Pieter Wijnen

Put a Timer on a hidden form or switchboard

Sub Form_Timer()
If VBA.Timer > 72000 Then ' After 8 PM
Access.Application.Quit, acQuitSaveAll
End If
End Sub

HtH

Pieter
 

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