I have multiple subforms in a form and want to sum up the score fields in each one.
b = 0;
for each row in input.General
{
b = (b + row.Score);
}
input.General_Score = b;
c = 0;
for each row in input.Hygiene
{
c = (c + row.Score);
}
input.Hygiene_Score = c;