I have five MS Access (Office 2013) databases which are split into five front-end (in several users desktops) and five back-end (in the server) files. I have most of my code in a .accdb file, and my front-end files reference to the code file (in the server) using:
Application.VBE.ActiveVBProject.References.AddFromFile "W:\DB\Code.accdb"
Everything works fine while people are using the front-end files.
However, every time I need to correct something in the code file, I cannot do it if someone has its front-end file opened (I get "You do not have exclusive access to the database at this time. If you proceed to make changes, you may not be able to save them later.").
Is there any way of the front-end files to reference the code file in a non-exclusive or read-only mode? I am not expecting to update the code in real time it the front-end files, I just want to be able to do the changes, save them, and then the users get it the next time they open their files.
I have already tried to:
- Set Code.accdb as read-only file (which is not interesting because I need to edit the file anyway)
- Set the permissions of the folder "W:\DB\" to read only for all users but me. This way, the lock file is not created when front-end files are opened, but the code file opens as read only for me.