View Single Post
  #3   Report Post  
Posted to microsoft.public.word.tables
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default Problem with conditional calculation in a table

Hi Tom,

Instead of a calculation formfield, you could use a formula field coded as:
{=Quantity_1*Price_1 \# "$,0.00;;"}

--
Cheers
macropod
[Microsoft MVP - Word]


"Tom Stanley" wrote in message ...
I have an invoice that I want to create a conditional expression to display nothing on a zero result. The result is displayed in a
Text Form Field (Type = Calculation, Maximum Length = Unlimited, Number Format = nothing, Bookmark = Text2, Calculate on Exit is
Checked) Expression is as follows { IF {Quantity_1} 0 { = {Quantity_1} * {Price_1} \# $#,##0.00; } "" }

My problem is that when I protect the document and enter in info for Quantity_1 and Price_1 the result will not calculate and
display. Both Quantity_1 and Price_1 are Number type Form Fields with Default numbers of 0. This one is driving me nuts and it's
probably just a simple syntax error, but I can't seem to find the solution.........

EggHeadCafe - Software Developer Portal of Choice
Build A C# DNS MX Mail Record Query Class
http://www.eggheadcafe.com/tutorials...x-mail-re.aspx