I have a multiuser database (POS/billing system), split into front and backend. Each user have copies of both files on their tablets and a master copy is maintained in the office. Each user sends daily data exports which are imported into the master database, and once a week, a copy of the master database is made available for all users to import to their tablets. The new database file has the current date as prefix. (e.g. 2015-04-10_BE_MYDATABASE.mdb) All of this is done through VBA and it all works fine. However, my problem is that I end up with multiple files on the tablets and sometimes the users connect the fronted to the wrong (older) backend.
What I would like to do is that when a user updates to the database, delete the current backend file they are connected to. I have created the code to save a backup copy of the current database in a different folder, and then connect all my tables to the newly imported database. But, I am not able to delete/kill the current database because of the lock file.
Please help.