Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-11-2011, 08:21 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 Making the IF field work (not Mail Merge)

My templates have custom properties for things like course number, course title, etc., and fields in the headers and footers that reference the docproperties.

This is the way we did it when I was working in Word 2003. I had to hit the ground running when I moved to a 2007 environment and I haven't had time to learn about QuickParts, which I assume would get me the same result.

But everything is working as intended -- my users are ecstatic that they don't have to fight with typing inside the headers and footers any more (and so far they're complying with my dire warnings about messing with the section breaks, so the headers and footers actually work correctly!) So for the moment I'm sticking with this strategy.

But I'm running into a problem with "conditional text" using the IF field. I want to insert the string "(Instructor)" in the footer IF the _Instructor docproperty is set to Yes (it's a Yes/No field), and insert nothing if it's set to No.

According to the only documentation I can find (Examples of IF fields for Word 2003), it looks to me like this should work:
{ IF {DOCPROPERTY _Instructor} = Yes "(Instructor)" " " \* MERGEFORMAT }
But it returns this:
_Instructor}


which is obviously not what I want.

Putting "Yes" in quotes doesn't help; putting the field name in quotes doesn't help (although my simple DocProperty fields in the header and footer DO have the field name in quotes).

I feel like this should be a simple thing to do...I can't understand what I'm missing.

Any thoughts? Thanks in advance!

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 02:00 PM.


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