#1
|
|||
|
|||
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 |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
confusion with merge and field codes | BluRay | Mail Merge | 5 | 03-29-2011 01:06 AM |
Merge field in header disappearing | Medievalguy88 | Word | 2 | 01-06-2011 08:19 AM |
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 |
mail merge making me crazy | oreomax | Mail Merge | 3 | 06-16-2009 06:53 AM |