Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / May 2008

Tip: Looking for answers? Try searching our database.

Counting "yes" from multiple "yes/no" fields on single form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bill_IDHEE - 28 May 2008 16:15 GMT
I know COUNT works across the whole database on a named field, but can it be
programmed to count the yes's from a number of different fields on the same
form?
I.E. to count how many of, say, 12 boxes are ticked.
Klatuu - 28 May 2008 17:24 GMT
Put a text box on your form to do that.  Use the control's Control Source
property to count the number of check boxes that are checked.  A check box
checked returns -1 and an unchecked check box returns 0, so you have strip
the sign bit of the results to return a positive number:

=Abs(CheckBox1+CheckBox2+CheckBox3+CheckBox4)
Signature

Dave Hargis, Microsoft Access MVP

> I know COUNT works across the whole database on a named field, but can it be
> programmed to count the yes's from a number of different fields on the same
> form?
> I.E. to count how many of, say, 12 boxes are ticked.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.