A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Counting Checkboxes



 
 
Thread Tools Display Modes
  #1  
Old May 24th, 2004, 07:32 PM
quixote
external usenet poster
 
Posts: n/a
Default Counting Checkboxes

How can I count the number of checked checkboxes on a
report? I want to get a percentage, so I need:
(Number of Checked Checkboxes/Total Number of Checkboxes)*
100.

Thanks you
  #2  
Old May 24th, 2004, 07:52 PM
fredg
external usenet poster
 
Posts: n/a
Default Counting Checkboxes

On Mon, 24 May 2004 11:32:14 -0700, quixote wrote:

How can I count the number of checked checkboxes on a
report? I want to get a percentage, so I need:
(Number of Checked Checkboxes/Total Number of Checkboxes)*
100.

Thanks you


In the Report Footer:
=ABS(SUM([CheckBoxField]))/COUNT([CheckBoxField])*100

The Sum function of Check boxes will return the number of checked
boxes.
The ABS() function will make the result a positive value.
The Count() function will get the total number in the report (checked
and unchecked).
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:11 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.