You can't calculate letters, but you can calculate based on the result of a
form field that contains letters. Use the dropdown field's bookmark in the
calculation. The bookmark will contain the selected content of the field.
Therefore consider a form with two fields Text1 and Dropdown1 and you wish
to multiply Text1 with a figure that relates to the content of Dropdown1.
Insert a Word formula field in the document where you want the result of the
calculation and check the calculate on exit button of both fields (ignore
the any error you get when tabbing out of the first fields if the Text1
field does not yet have content, or set a default value for that field of 0
so that it does)
{ =({ IF{ Dropdown1 } = "AUD" "1" "{ IF{ Dropdown1 } = "USD" "2" }" } *
{Text1 }) }
Here the calculation sets a value of 1 for AUD and 2 for USD. If the value
of AUD and USD are defined elsewhere in the form you can put the form field
names (check their calculate on exit check boxes) in place of the numbers
thus:
{ =({ IF{ Dropdown1 } = "{AUDfieldname}" "1" "{ IF{ Dropdown1 } = "USD"
"{USDfieldname}" }" } * {Text1 }) }
All field boundaries {} are inserted with CTRL+F9. See
http://www.gmayor.com/formatting_word_fields.htm and
http://www.gmayor.com/SelectFile.htm for other examples.
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site
www.gmayor.com
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>