percent calculation


i have form need add dollar amounts projected small business spend , large business spend. (which entered user) then, actual cumulative smal , large spend entered user.

i need know how write script calculating percentage of cumulative spend in relation projected spend.

cumulative spend = % of projected spend
projected spend = 200.00
50.00 % of 200.00

here code tried:

if(totalcurrent ne 0)
(smallactual / totalcurrent) * 100
else
null
endif

here error:

script failed (language formcalc; context
xfa[0].form[0].topmostsubform[0].page1[0].smallactual[0])
script=endif
error: syntax error near token 'endif' on line1, column 5.

any appreciated. new program.



More discussions in LiveCycle pre-ES (6.x and 7.x) discussions


adobe

Comments