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 / May 2004

Tip: Looking for answers? Try searching our database.

Conditional Fields?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Julie - 22 May 2004 09:16 GMT
I would like to create a condition in which a true value
of a certain field would print the contents of a
different field and a false value would print the
contents of a third field.

This is my rudimentary failed attempt.  Could someone
please guide me in a better direction?

{If Title = "Ms." {MERGEFIELD Name} {MERGEFIELD Spouse}}

Thanks,
Julie
Doug Robbins - Word MVP - 22 May 2004 10:05 GMT
The construction should be:

{If {MERGEFIELD Title} = "Ms." {MERGEFIELD Name} {MERGEFIELD Spouse}}

You must use Ctrl+F9 for each pair of field delimiters { } if you insert
this directly from the keyboard

Otherwise, use the If...then...Else word field, select the Title mergefield
in the "Insert Word Field: IF" dialog, enter Ms. in the Compare to: control
and put A in the Insert this text: control and B in the Otherwise insert
this text: control.  Then click on OK.

Then in the Document, press Alt+F9 to display the field codes, select the A
and then for the list of merge fields, select the Name field.  Then select
the B and from the list select the Spouse field.  The A and the B should
then be replaced by those fields so that you end up with the above field
construction.
Signature

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested.  Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP

> I would like to create a condition in which a true value
> of a certain field would print the contents of a
[quoted text clipped - 8 lines]
> Thanks,
> Julie
 
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.