I have a database drive mail merge document that is also supported with side Word documents.
One field in the database is DeptFile, this holds the name of the separate Word document for that unit. The separate Word file holds unit specific information. For example ICU has additional information to be added that no one else needs or there are lists of abbreviations that only apply to one unit. I can format like I need to in Word easier than in the database so I put it in the Word file.
With the abbreviation list some units have them some do not. What I want to do is to avoid the error message ( Error! Filename not specified.) I get if there isn’t a DeptFile or no abbreviation bookmark. The following works if there is material in a bookmark call abbreviations and there is a separate DeptFile.
{INCLUDETEXT “{MERGEFIELD “DeptFile” }” abbreviations }
I am working with the following, but not getting there
{ IIF(Nz({MERGEFIELD “DeptFile” } abbreviations)), {INCLUDETEXT “{MERGEFIELD “DeptFile” }” abbreviations }, “” }
Thank you for any help. I am not sure that Nz is allowed in Word. Fay