I thought this would be pretty easy, but I'm having difficulty.
On a report, I need to count the number of checked checkbox controls. For reference if a checkbox is checked it is equal to -1. I did create a IIF() on each record to confirm this.
Basically, I want to count all the -1's. I created a text box for each record on the report with the IIF function to be 1 if the box was checked and nothing or zero if it wasn't.
In the report footer and the page footer, I created another text box to add up the contents of that IIf Text box
I get an #Error if the Sum Text Box is in the Page footer and a critera input box asking for a Text20 input if it's in the Report Footer.
So, any thoughts?
TIA.
DreamerZ
DreamerZ
simplesolutions@prodigy.net
[ignore][/ignore]
On a report, I need to count the number of checked checkbox controls. For reference if a checkbox is checked it is equal to -1. I did create a IIF() on each record to confirm this.
Basically, I want to count all the -1's. I created a text box for each record on the report with the IIF function to be 1 if the box was checked and nothing or zero if it wasn't.
Code:
=IIf([Field]=-1,"1","0")
Code:
=Sum([Text20])
So, any thoughts?
TIA.
DreamerZ
DreamerZ
simplesolutions@prodigy.net
[ignore][/ignore]