Results 1 to 3 of 3
  1. #1
    BLFOSTER is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jun 2013
    Posts
    68

    Count Checked boxes on report

    Hi. I have a report for attendance of students. It is grouped by unique student ID. I have summed each students expected hours for the month in a text box and summed each students actual hours for the month in another text box. If the student has perfect attendance then my checkbox = true ([check65]). This report is for the Month of May, and attendance is tracked by WEEK, so in the detail section under each unique identifier group header, there are 4 records - 1 for each week for each student. I want to JUST count how many check65's are true - a total number of students who have perfect attendance for the MONTH. I have tried many other methods but always get the count of all the detail records which I do not want. For example: Sum(iif([Total Actual Hours]-[Total Expected Hours]<=0,1,0)) counts all the detail records when I put the expression in the report header or footer. Any ideas?


    Thank you

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    your query must have all possible days in the week AND the days they attended to count.
    if DayAttend = DaysInWeek then PERFECT ATTEND=TRUE

  3. #3
    BLFOSTER is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jun 2013
    Posts
    68
    Thank you. That wouldn't solve my problem, but I figured it out. I am using a "totals" query w/unique values for each calculation and this is working fine.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Print Checkbox on report only if checked
    By azhar2006 in forum Reports
    Replies: 5
    Last Post: 10-26-2014, 11:59 PM
  2. Replies: 4
    Last Post: 06-03-2014, 10:30 AM
  3. Replies: 2
    Last Post: 03-08-2014, 02:45 AM
  4. Replies: 54
    Last Post: 07-17-2013, 03:01 PM
  5. Make Calculation in Report IF Check box is checked in form
    By johnjmcnaughton in forum Programming
    Replies: 1
    Last Post: 03-26-2013, 12:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums