Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 04-11-2011, 09:01 AM
Caroline Caroline is offline Making the IF field work (not Mail Merge) Windows XP Making the IF field work (not Mail Merge) Office 2007
Novice
Making the IF field work (not Mail Merge)
 
Join Date: Feb 2011
Posts: 17
Caroline is on a distinguished road
Default Fixed!

Wow.

1. When a Yes or No property is set to "Yes," the expression to compare it to is "Y," not "Yes." I hadn't gotten around to researching that particular question yet...

2. The nested brackets ( "{ DOCPROPERTY "_Instructor" } aren't just any curly braces -- they have to be Word's magic field brackets created using Insert -> Field.

So. In case this will be of use to anyone else, here's the way to display conditional text using document properties and field codes:
{ IF { DOCPROPERTY "_Instructor" } = "Y" "(Instructor)" " " \* MERGEFORMAT }
where all the brackets are magic and all the spaces are essential. (I feel like Garrison Keilor...)

Thanks for a forum where I could puzzle this out myself!

Caroline
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Making the IF field work (not Mail Merge) confusion with merge and field codes BluRay Mail Merge 5 03-29-2011 01:06 AM
Making the IF field work (not Mail Merge) Merge field in header disappearing Medievalguy88 Word 2 01-06-2011 08:19 AM
Making the IF field work (not Mail Merge) Selecting merge field based on whether or not text is present amym Mail Merge 1 12-07-2010 05:14 AM
Mail merge Field Code Manipulation macjnr Mail Merge 0 09-10-2009 11:37 AM
Making the IF field work (not Mail Merge) mail merge making me crazy oreomax Mail Merge 3 06-16-2009 06:53 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:37 PM.


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