Results 1 to 3 of 3
  1. #1
    confidego is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    8

    How do I "count" ticks?

    Hi everyone,



    I have attached two screenshots for your perusal.

    In the images, you can see that "Total Paper-Back(s)" counts for the number of the boxes. I require it to count the number of ticked boxes and non-ticked boxes.

    Is there anything I can do to rectify this problem?

    In the design view, I used =Count(*) to count the number of boxes.

    If it is impossible, would be better to remove "tick" as a mean but use "Yes/No" lookup wizard, or purely text??

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,602
    I am confused by this report setup. The Count is cumulative for the BookType. Is this what you want? Aggregate calcs in the PaperBack & NotPaperBack textboxes will also be cumulative. Why aren't the records in the Detail Section? Is there anything in the Book Code Footer (you show nothing in Header)?

    Can you make project available (or at least objects related to this issue)?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    a yes/no fields is stored as -1/0 if you count them you are going to get a count of all fields, which you did.

    If you want to count only the paperbacks you would do abs(sum([paperbackyesno])). Abs takes the absolute value of a number (makes a negative number a positive) so for instance in the book section where you have one item checked and another not you would get a value of 1.

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

Similar Threads

  1. Replies: 16
    Last Post: 07-22-2011, 09:23 AM
  2. Replies: 1
    Last Post: 03-30-2011, 06:16 PM
  3. Query Table for "*" and then Count all instances
    By Steven.Allman in forum Queries
    Replies: 14
    Last Post: 09-10-2010, 07:45 PM
  4. Query Results "Count Totals"
    By tipopilotas in forum Queries
    Replies: 1
    Last Post: 03-26-2010, 10:36 PM
  5. "Count" and "Countif" in Reports
    By JMantei in forum Reports
    Replies: 1
    Last Post: 06-20-2006, 02:20 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