Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Counting checked boxes on a crosstab report 1

Status
Not open for further replies.

telephoto

Technical User
Nov 3, 2002
210
GB
Greetings again.
I have a report which can be opened to show data from 4 different crosstab queries, the number of columns being dependant on the number of records in that query.
First column shows a list of names, subsequent cols are check boxes under a date heading.
A checked box shows the named player is available on that date. So far brilliant (thanks Duane).

I am trying to show a textbox in the report footer with a total of the checked boxes in that column.

I have searched Tek-Tips, and tried several answers but I get "#error" in the box when the report is run, many of these are old answers, maybe Access has changed? I am using Access 2013 with (probably) an Access 2003 database.

Field name is a number, eg 6, with the checkbox being chk6

Is DCount an option here? but I can't work out the syntax.

Telephoto
 
What happens if you try a control source of:
Code:
=Abs(Sum([6]))

Make sure you add this to a report or group header or footer, NOT a page header or footer section.

Duane
Hook'D on Access
MS Access MVP
 
I saw several of your replies saying to use abs - but however I configured it all I got was the #error

You needed to tell me to use the report footer. Now it works a treat, thanks again.

T
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top