I split my database and so far, it is working well, i.e., no more conflict messages, however, I do have one issue I need assistance with.
There are some MSWord templates that I insert text into using bookmarks and the code finds the files by getting the CurrentProject.Path. This was fine when the database was all one file or if the user is using the front end file that is in the same folder as the back end file, but when the user makes a copy of the front end file to place on their desktop, the code can't find the file because it's not on the user's desktop. Now, I don't want to have the users make copies of all the templates and put them on their desktop but this is what we're having to do for now.
I found some code to put into my main form when it loads but the path isn't getting passed to the code modules. So, my question is, how do I pass in the updated path to my code?
Currently, it looks for the file using "If FileExists(TrailingSlash(CurrentProject.Path) & "CDRL_Template_Single_DM.dotx") = False Then"
Code for getting the current path was found here, last post - https://stackoverflow.com/questions...ve-path-specify-a-linked-table-in-access-2007
Thanks in advance.
There are some MSWord templates that I insert text into using bookmarks and the code finds the files by getting the CurrentProject.Path. This was fine when the database was all one file or if the user is using the front end file that is in the same folder as the back end file, but when the user makes a copy of the front end file to place on their desktop, the code can't find the file because it's not on the user's desktop. Now, I don't want to have the users make copies of all the templates and put them on their desktop but this is what we're having to do for now.
I found some code to put into my main form when it loads but the path isn't getting passed to the code modules. So, my question is, how do I pass in the updated path to my code?
Currently, it looks for the file using "If FileExists(TrailingSlash(CurrentProject.Path) & "CDRL_Template_Single_DM.dotx") = False Then"
Code for getting the current path was found here, last post - https://stackoverflow.com/questions...ve-path-specify-a-linked-table-in-access-2007
Thanks in advance.