Solved

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

Posted on 2011-09-21
4
347 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 will show you how to use shortcut menus in the Access run-time environment.
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 use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

810 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