Results 1 to 2 of 2
  1. #1
    Star Lounger
    Join Date
    Jan 2001
    Location
    Crestview Hills, Kentucky, USA
    Posts
    84
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Calculations in a Report (Access 2000)

    I have a checkbox field that appears with each record in a report. How can I create a calculation in the report footer of how many of these checkboxes in the field are checked in the entire report?

    Thanks in advance,
    Craig.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Calculations in a Report (Access 2000)

    Say that the Yes/No field is named CheckField. Put a text box in the report footer with control source

    =Abs(Sum([CheckField]))

    Explanation: false (unticked) corrsponds to 0, and true (ticked) to -1. So if there are 37 checked and 23 unchecked boxes, the sum of the field over all records will be 37*-1 + 23*0 = -37. By taking the absolute value, we get rid of the minus.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •