Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
Adding punctuation inside If-Then-Else with MailMerge fields
I am trying to create a mail merge letter that will have some punctuation
attached to a mail merge field. For example: If Name1 is not blank, then print Field1 - Field2, else Field1. I would like a hyphen to separate Field1 Field2 for the true condition, but no hyphen to print if only Field1(the false condition). Is this possible in Word? I can't seem to make it work. My version of Word is Word 2002. Thanks for any help. Lynda |
#2
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
Adding punctuation inside If-Then-Else with MailMerge fields
Try:
{ IF "{ MERGEFIELD Name1 }" = "" "{ MERGEFIELD Field1 }" "{ MERGEFIELD Field1 } - { MERGEFIELD Field2 }" } where all the {} are the special field code braces you can insert using ctrl-F9. If that does not give you what you need, can you spell out what goes wrong? Peter Jamieson "Lynda Kinley" wrote in message ... I am trying to create a mail merge letter that will have some punctuation attached to a mail merge field. For example: If Name1 is not blank, then print Field1 - Field2, else Field1. I would like a hyphen to separate Field1 Field2 for the true condition, but no hyphen to print if only Field1(the false condition). Is this possible in Word? I can't seem to make it work. My version of Word is Word 2002. Thanks for any help. Lynda |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Can you allow spell check inside form fields with protection on? | Microsoft Word Help | |||
Mailmerge vs. form fields | Mailmerge | |||
How to use access query computed fields in Word mailmerge | Mailmerge | |||
How do I use a form then mailmerge without losing the form fields | Mailmerge | |||
Using MAILMERGE fields within HYPERLINK fields for Merge to Email | Mailmerge |