Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / June 2006

Tip: Looking for answers? Try searching our database.

Adding punctuation inside If-Then-Else with MailMerge fields

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lynda Kinley - 20 Jun 2006 14:57 GMT
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
Peter Jamieson - 20 Jun 2006 18:45 GMT
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

>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
[quoted text clipped - 6 lines]
>
> Lynda

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.