View Single Post
  #15   Report Post  
Posted to microsoft.public.word.tables
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default Word 2003 - IF Statement, Form Field Calculate

Hi Stacy,

The correct use of spaces between the expressions in a formula field can be critical. For the space between an expression and a
picture switch, though, I don't believe it is. Thus:
{=MAX({=D19*D21 \# 0 },150) \# $,0}
{=MAX({=D19*D21 \#0 },150) \#$,0}
{=MAX({=D19*D21\# 0 },150)\#$,0}
all give the same result, but
{=MAX({=D19*D21\# 0 },150)\#$ ,0}
will produce a syntax error. If you need spaces etc withing the formatted output, you need to enclose the numeric formatting within
double quotes. For example:
{=MAX({=D19*D21\# 0 },150) \# "$ ,0"}

--
Cheers
macropod
[Microsoft MVP - Word]


"Stacy Birk" wrote in message ...
macropod!

Thank you so very much for your help. You do not know how much it is
appreciated. The final result that you offered works like a charm.

Side question: When working with field formulas such as we did within
this post, if spaces are not part of the end results, do spaces matter
when trying to get to a result? For example: This is the formula -
{=MAX({=D19*D21 \# 0 },150) \# $,0} (notice space after D21, after #
and after 0) as opposed to using: {=MAX({=D19*D21\#0},150)\# $,0} .

You are wonderful. Thank you again.

Stacy