TudorSmith
Programmer
Hi All
I have a report with a column returning values 0 & 1 (Where a task is complete or not). I have set an expression to return "NO" or "YES" accordingly.
Now, in my report footer I would like a field that only counts the number of 1's. If my report shows 6 columns and only 2 have a "1" value, then I'd like a field showing:
Can anyone provide a formula I should use to accomplish this? I tried my best a Basic Script but get an error stating the Special Variable 'Formula' must be assigned:
Here's my code
birklea ~©¿©~ <><
Dim objJedi as Jedi.Knight
Set objJedi[skyWalker].Aniken = FatherOf(useThe.Force(objJedi[skyWalker].luke))
I have a report with a column returning values 0 & 1 (Where a task is complete or not). I have set an expression to return "NO" or "YES" accordingly.
Now, in my report footer I would like a field that only counts the number of 1's. If my report shows 6 columns and only 2 have a "1" value, then I'd like a field showing:
Code:
"Total Completed: 2"
Can anyone provide a formula I should use to accomplish this? I tried my best a Basic Script but get an error stating the Special Variable 'Formula' must be assigned:
Here's my code
Code:
Dim i as number
i = 0
If {spu_BBRIS_Snagging_MCSnagging;1.STRESSING_COMPLETED} = 1 Then
i = i + 1
end if
birklea ~©¿©~ <><
Dim objJedi as Jedi.Knight
Set objJedi[skyWalker].Aniken = FatherOf(useThe.Force(objJedi[skyWalker].luke))