Expression boxes are not bound to a data node and therefore can't pass the
results along like you are trying to do.
Expression B needs to be (field1*field2) * field2 or
you can do the calculations in a text box and then Expression box B can be
SubTotalfield * field2
If you use the 2nd approach, the text box can be read only and actually
doesn't even have to be on the form at all! You can add the calculations to
the node in the Data Source view. This would be a good way to go if you use
this same interim calculation several times and don't want to re calc it
every time.
--
Jerry Thomas
Microsoft Office InfoPath
---------------------------------------
This posting is provided "As Is" with no warranties, and confers no rights.
Use of any included script sample are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.
Please do not send email directly to this alias. This alias is for
newsgroup purposes only.
Milena said:
Hi,
I am trying to use the results from one expresion box into the formula of
another. Do you know why it isn't working? Thanks!
Example: expression box A has the formula field1*field2. Epression box B
has the formula expression box A * field2. It doesn't work.