My database is used by a few users on a shared drive in "read-only" mode so they can't change any data.
I set a scheduled task to copy an updated version of the database (which I edit) every morning.
The problem is that when the users forget to close the database file I can't overwrite it.
For this purpose I wrote a small code that quits the application at 00:00 using Application.Quit.
The code WORKS when I test it on my computer, but every morning when I try to open the file I see that it is opened by another user since I also open it as "read-only" - meaning the code didn't work...
I need your help in either getting the code to work properly OR get a better solution to be able to overwrite the file even though it's opened by other users.
Using Access 2010.
THANKS!
I set a scheduled task to copy an updated version of the database (which I edit) every morning.
The problem is that when the users forget to close the database file I can't overwrite it.
For this purpose I wrote a small code that quits the application at 00:00 using Application.Quit.
The code WORKS when I test it on my computer, but every morning when I try to open the file I see that it is opened by another user since I also open it as "read-only" - meaning the code didn't work...
I need your help in either getting the code to work properly OR get a better solution to be able to overwrite the file even though it's opened by other users.
Using Access 2010.
THANKS!