I feel your pain. A little background. I use Blackbaud Raiser's Edge and they recently announced that the interface with Microsoft Word is going away on February 28. My data source is an exported CSV file from Raiser's Edge.
What I learned is that you need to be VERY methodical in the process.
- All the source documents and your Master merge document should be in one folder so that they are easily accessible.
- the source documents and conditional merge document all need to be linked to the same data source. I set it up so that when I export my data from Raiser's Edge it always goes to the same place and has the same file name.
- File names for letters and data source documents should not contain any other symbols such a periods, apostrophes or dashes.
- Remember, the name of your letter in the file path might not be the same name as the letter name in your data source.
- Do not attempt to type in file path of the source document in your Master merge document. Always copy and paste. The easy way to do this is to use the folder from your task bar to show all of your source files. To copy the file path, select the document, then hold down your shift key and right click. In the drop-down menu select "copy file path".
- Have "View Field Codes" and "Insert Field Codes" available in your quick access toolbar. It makes life easier. To add these, you right click on the quick access toolbar and follow the instructions in the dialogue box. select "View all Commands" so you can see all the options.
Okay, ready to start the master merge document. This is assuming that you have already linked your source documents to the data source.
- Start a new document.
- In the mail function in Word, select your data source. Then make sure "View Field Codes" is on.
- In the rules section select the If/then/else rule. For Field Name select "letter" For Comparison select "equal to" For the Compare to, type in the name of the letter as it appears in your data source (it must match exactly). You will now see this: { IF { MERGEFIELD Letter } = "Your Letter Name" "" "" }
- Place your curser between the first set of empty quotes and select "insert merge field" from your quick access toolbar.
- With your curser inside the brackets you just created, right click. Select "Edit Field". A dialogue box will appear.
- Select "include text"
- A box will appear to insert your file path. Copy the file path of the corresponding letter and paste it in the box. and click Ok/Apply.
To test this go to mail and select edit letters to see if your document appears as you intended. Once you confirm that you got it right, continue adding your remaining letters in the master document in the same manner. (do not space or return between your if/then/else commands.)
I hope this helps.