formating an unbound text box

F

fishqqq

Can someone suggest how i would format an unbound text box that is
basically counting the number of times a checkbox is actually checked?

i'm using the following in the control property of the text box but
it counts ALL the check boxes (checked and unchecked) - the text box
is in the form's footer.

=Count([non haz]=True)

I know the check box is recording yes/no -1/0 but i would like to
count all the yeses and sum them up at the bottom.

thank you
 
J

John W. Vinson

Can someone suggest how i would format an unbound text box that is
basically counting the number of times a checkbox is actually checked?

i'm using the following in the control property of the text box but
it counts ALL the check boxes (checked and unchecked) - the text box
is in the form's footer.

=Count([non haz]=True)

I know the check box is recording yes/no -1/0 but i would like to
count all the yeses and sum them up at the bottom.

thank you

Don't count: sum. Set the control source of a textbox in the footer to

=Abs(Sum([non haz]))

To count the "no" values, you can use

=Sum([non haz] + 1)
--

John W. Vinson [MVP]
Microsoft's replacements for these newsgroups:
http://social.msdn.microsoft.com/Forums/en-US/accessdev/
http://social.answers.microsoft.com/Forums/en-US/addbuz/
and see also http://www.utteraccess.com
 

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