View Single Post
 
Old 08-02-2016, 10:21 AM
utzja1 utzja1 is offline Windows 7 64bit Office 2013
Novice
 
Join Date: Jun 2015
Posts: 11
utzja1 is on a distinguished road
Default MERGE with IF field

HI All,

I am trying to trying to use the mail merge utility to generate some inspection reports. Some of the inspection reports will have photos of defects (stored in PhotoPath1), but not all will have them. So I am attempting to use the IF field to check if the Photo Path is a blank (<> ""), and then to paste the picture at the path if there is a path to a defect photo. I can get the photo title to show up only when the Photo Path is not blank, but I am not getting the picture to come in also. I couldn't get the field text to paste in here so I have re-typed it. This is just as it appears in the WORD document.

{ IF {{MERGEFIELD PhotoPath1} <> "" {INCLUDEPICTURE {MERGEFIELD PhotoPath1} }}\* MERGEFORMAT}

I'm hoping that someone has tried this before and can help me navigate through this. Many thanks for your consideration.
Reply With Quote