WD2000: Calculation in Form Field Shows Wrong ResultID: Q211253
|
When a form field calculation involves another calculated form field, the
results may be incorrect.
The two scenarios below illustrate this symptom.
TYPE OF
TEXTFORM ACTUAL EXPECTED
FIELD EXPRESSION BOOKMARK RESULT RESULT
-------------------------------------------------------------
NUMBER NONE Text1 100 100
CALCULATION =Text1 Text2 100 100
CALCULATION =Text1 + Text2 Text3 100200 200
This results in doubling the value of form field 2 (Text2).
TYPE OF
TEXTFORM ACTUAL EXPECTED
FIELD EXPRESSION FORMATTING BKMRK RESULT RESULT
-----------------------------------------------------------------------
NUMBER NONE Dollar Sign Text1 100 100
CALCULATION =Text1 Dollar Sign Text2 $100 $100
CALCULATION =Text1 + Text2 Doesn't Matter Text3 $300 200
This results in doubling the value of form field 2 (Text2).
Word defines the bookmarks assigned to the Calculation form fields incorrectly. As a result, Word does not correctly parse these form fields; it concatenates them instead.
To work around these problems, use the method appropriate for your situation.
{ FORMTEXT {=Text1}}
^ ^
| |
Start of End of
selection selection
{FORMTEXT {=Text1 + Text2}}
to the following
{FORMTEXT {=A1 + A2}}
where the Text1 bookmark is in table cell A1, and the Text2 bookmark is in
table cell A2.
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.
Additional query words: append appends
Keywords : kbdta kbfield wd2000
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: May 21, 1999