Minddumps
Registered User.
- Local time
- , 20:31
- Joined
- Jul 5, 2011
- Messages
- 73
[SOLVED] How to change Directory location in Albert Kallal's Word Merge program??
I’m using Albert Kallal’s word merge program and trying to tell the program to look up a certain location for the Word folder, instead of searching for it in the same location that the access file is location. This is because I have a split database with many people having the front end copied on their desktop, but I need everyone to be able to access the Word mail merge folder in a central location.
In the "WordCode" module, I tried replacing this code:
With this code that I copied from some login code that looksup where the master version location is and edited to use with wordmerge:
But I get a
I’m a VBA novice, can anyone help me figure out how to fix what I’m attempting?
I’m using Albert Kallal’s word merge program and trying to tell the program to look up a certain location for the Word folder, instead of searching for it in the same location that the access file is location. This is because I have a split database with many people having the front end copied on their desktop, but I need everyone to be able to access the Word mail merge folder in a central location.
In the "WordCode" module, I tried replacing this code:
Code:
Optional strDir As String = "Word\", _
Code:
Optional strDir As String = DLookup("[s_masterlocation] ", "Wordmerge_ location"), _
And “DLookup” is highlighted with this code text:“Compile Error: Constant expression required”.
Code:
Public Function MergeSingleWord(Optional strDir As String = DLookup("[s_masterlocation]", "Wordmerge_ location"), _
Last edited: