Control Souse for Text Box

C

CEV

I have created a report that shows a check box for the records that show up
on the report. I added a text box and want this text box to show me the
total of how many check boxes are checked.

I entered the following but it does not work:

=Sum(Abs([Student]="1"))

I also tried leaving out the Abs but that also does not work. How should I
enter this?

Thanks,

Chad
 
F

fredg

I have created a report that shows a check box for the records that show up
on the report. I added a text box and want this text box to show me the
total of how many check boxes are checked.

I entered the following but it does not work:

=Sum(Abs([Student]="1"))

I also tried leaving out the Abs but that also does not work. How should I
enter this?

Thanks,

Chad

If [Student] is a check box field, then it's value is either 0
(unchecked) or -1 (checked).

To count checked boxes:

=ABS(Sum([Student]))

To count unchecked boxes:
=Sum([Student]+1)
 
C

CEV

Thanks Fred!!

fredg said:
I have created a report that shows a check box for the records that show
up
on the report. I added a text box and want this text box to show me the
total of how many check boxes are checked.

I entered the following but it does not work:

=Sum(Abs([Student]="1"))

I also tried leaving out the Abs but that also does not work. How should
I
enter this?

Thanks,

Chad

If [Student] is a check box field, then it's value is either 0
(unchecked) or -1 (checked).

To count checked boxes:

=ABS(Sum([Student]))

To count unchecked boxes:
=Sum([Student]+1)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top