Hello,
How can I sum the value of different fields
Code:
<if rsone ("sm")= rsone ("bn")then rsone ("sm").value = "3" else rsone ("sm").value = "0" end if %>
I would like to sum the value of sm1,sm2,sm3, etc.
how could I do this?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<if rsone ("sm")= rsone ("bn")then rsone ("sm").value = "3" else rsone ("sm").value = "0" end if %>
var totalValue = 0
for (a = 1; a < 10; a++) {
if rsone ("sm + 'a' + ")= rsone ("bn + a + ")then rsone
("sm + 'a' + ").value = "3" else rsone ("sm + 'a' + ").value = "0" end if %>
totalValue += rsone("sm + 'a' + ")
}