Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 03-03-2012, 03:03 PM
macropod's Avatar
macropod macropod is offline IF statement just generates text "MERGEFIELD" in document - what am I doing wrong? Windows 7 64bit IF statement just generates text "MERGEFIELD" in document - what am I doing wrong? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,526
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

Hi Eri,

You field syntax looks OK, so I suspect the issue may be related to the use of the field braces (ie '{}'). You cannot type these - for manual creation, they must be created in pairs via Ctrl-F9.

In any event, you don't need an IF test - simply format the MERGEFIELD as:
{MERGEFIELD "Item1_Discount" \# "$0.00;-$0.00;"}
or:
{MERGEFIELD "Item1_Discount" \# "$0.00;;"}
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to edit the "Format" and the "show level" of an EXISTING table of content? Jamal NUMAN Word 2 08-14-2011 10:46 AM
IF statement just generates text "MERGEFIELD" in document - what am I doing wrong? Word 2003 document suddenly "locked for editing" by me lisa801 Word 3 07-08-2011 10:11 PM
IF statement just generates text "MERGEFIELD" in document - what am I doing wrong? "Table of content" based on "Normal Style" behavior!!!! Jamal NUMAN Word 4 07-08-2011 04:12 AM
IF statement just generates text "MERGEFIELD" in document - what am I doing wrong? How to choose a "List" for certain "Heading" from "Modify" tool? Jamal NUMAN Word 2 07-03-2011 03:11 AM
"Microsoft Excel Application" missing in the "Component Services" on win08 sword.fish Excel 0 02-26-2010 02:09 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:29 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