Solved

How to insert a MERGEFIELD after a condition is met in an "IF" field expression?

Posted on 2011-09-21
4
342 Views
Last Modified: 2012-05-12
I'm trying to insert a MERGEFIELD of FIRST_NAME if the MERGEFIELD TITLE doesn't equal "Mr and Mrs."

I threw together the following statement under the "If" field but it doesn't seem to work:

IF {MERGEFIELD TITLE} = 'Mr and Mrs.' {MERGEFIELD TITLE} {MERGEFIELD FIRST_NAME}

It just ends up putting TITLE} into the Word document. What is the correct expression to do this?
0
Comment
Question by:Eindoofus
  • 2
  • 2
4 Comments
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 500 total points
ID: 36577310
Use double quotes to contain the fields

{ IF {MERGEFIELD TITLE} = "Mr and Mrs." "{MERGEFIELD TITLE} {MERGEFIELD FIRST_NAME}" }
0
 

Author Comment

by:Eindoofus
ID: 36577340
Do I only hit CTRL+F9 once or four times to do that? Are the inner braces placed by doing CTRL+F9 as well, or are they manually typed?
0
 

Author Comment

by:Eindoofus
ID: 36577406
For every set of curly braces you need to use CTRL+F9
0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 36577423
Ctrl+F9 will put curly brackets around the current selection.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Microsoft Word is a program we have all encountered at some point, but very few of us have dug deep into its full scope of features, let alone customized it to suit our needs. Luckily making the ribbon (aka toolbar, first introduced in Word 2007) wo…
This article describes how to use the Send to Mail Recipient command. The instructions apply generally to Office 2007 and later versions, but Microsoft® Word 2013 was used for the specific steps and figures.  What is Send to Mail Recipient? Send…
This video shows where to find templates, what they are used for, and how to create and save a custom template using Microsoft Word.
The viewer will learn how to  create a slide that will launch other presentations in Microsoft PowerPoint. In the finished slide, each item launches a new PowerPoint presentation and when each is finished it automatically comes back to this slide: …

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now