Word provides the means to format the contents of fields inserted into the document, by the use of 'switches' or masks.The full range of these switches can be found at the end of this page.Take the example of the number Sometimes when merging data you may need to include additional text only when the associated field has content, or you may wish to insert a particular field without leaving a space when there is no content in that field.The simplest method is to use a conditional field or fields to place the data and associated text.The results of the conditional field are hard coded into the merge, which does not provide the opportunity to update, following a merge to a new document. Thus conventional wisdom would suggest that: should insert the picture identified from the mergefield 'Fieldname' and nothing when the field is empty. The following workaround demonstrates the insertion of a blank image where the condition is not met (save e.g.a 1 pixel transparent image as to give the effect of nothing being inserted - or download such an image by clicking the link).
To edit the field switches, toggle between the field display and the result with ALT F9 or use Tools The F9 key will update the field content to reflect the changes, or you could use macro code to update all the fields in the document.Note that INCLUDEPICTURE is the primary field and the condition is achieved as part of its content rather than the other way around.You can insert the required picture into the result of the conditional field directly and that will work also. Also to test to make sure the correct function is called when edit is triggered I printed a test on the screen and it work! I don't have my code infront of me so I can't post my load table functionso here is the problem var Start Time = row.Find Control("txt Start Time") as Text Box; var End Time = row.