Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-19-2017, 01:54 PM
macropod's Avatar
macropod macropod is offline Nesting Merge Fields Windows 7 64bit Nesting Merge Fields Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,514
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

It's not clear from what you've posted whether there are actually seven different variation of the text you want to output. You field coding suggests you want "2017 Fund_Arts" to appear if the field is empty, and "ARTS" otherwise, which you can achieve via:



{IF{MERGEFIELD Fund_description_1} = "" "2017 Fund_Arts" "ARTS"}

However, I suspect you actually intended to substitute "ARTS" in the output, as in:

{IF{MERGEFIELD Fund_description_1} = "2017 Fund_Arts" "ARTS"}

and, likewise:

{IF{MERGEFIELD Fund_description_1} = "2017 Fund _Athletics" "ATHLETICS"}
{IF{MERGEFIELD Fund_description_1} = "2017 FUND_Financial Aid" "FINANCIAL AID"}

If so, there is no need to nest any of the fields, though you can do so if you really want to. You could just insert them one after the other:

{IF{MERGEFIELD Fund_description_1} = "2017 Fund_Arts" "ARTS"}{IF{MERGEFIELD Fund_description_1} = "2017 Fund _Athletics" "ATHLETICS"}{IF{MERGEFIELD Fund_description_1} = "2017 FUND_Financial Aid" "FINANCIAL AID"}

Nested, they'd become:

{IF{MERGEFIELD Fund_description_1} = "2017 Fund_Arts" "ARTS" {IF{MERGEFIELD Fund_description_1} = "2017 Fund _Athletics" "ATHLETICS" {IF{MERGEFIELD Fund_description_1} = "2017 FUND_Financial Aid" "FINANCIAL AID"}}}

Hint: So that you don't have to change the field codes every year, you might consider deleting the year identifiers from the fields in the data source. Alternatively, you could code the fields like:

{IF{MERGEFIELD Fund_description_1} = "???? Fund_Arts" "ARTS"}{IF{MERGEFIELD Fund_description_1} = "???? Fund _Athletics" "ATHLETICS"}{IF{MERGEFIELD Fund_description_1} = "???? FUND_Financial Aid" "FINANCIAL AID"}
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nesting Merge Fields Mail Merge fields merge incorrectly and won't fix. marym Mail Merge 3 04-09-2016 05:17 AM
Nesting Merge Fields Displaying FORMTEXT fields when merge fields are empty or null sfkHooper Mail Merge 6 01-19-2016 04:24 PM
Nesting and IF & AND statement lynchbro Excel 4 04-16-2015 11:39 AM
Nesting Merge Fields merge fields disappear in merge doc but prints mdod Word 1 07-19-2013 06:33 PM
Nesting Merge Fields Nesting Variables SET, LISTNUM, and REF Wyskers Word 1 11-13-2011 05:43 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:38 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft