Results 1 to 3 of 3
  1. #1
    Aloupha is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2009
    Posts
    26

    Creating a Report with multiple counts

    Hello,

    I am trying to create a report that would display multiple counts of records per column values within a specific date range.

    My table is as follow:

    DATE UPDATE_TYPE COVERAGE_TYPE NOTIFY_SOURCE USER
    01/01/2013 MANUAL TYPE 1 EMAIL TS
    01/01/2013 SYSTEM TYPE 2 REPORTS TS
    01/01/2013 MANUAL TYPE 2 ANALYSIS TS
    01/02/2013 SYSTEM TYPE 1 CALLS TS
    01/01/2013 SYSTEM TYPE 2 EMAIL TP
    01/01/2013 MANUAL TYPE 2 ANALYSIS TP
    01/10/2013 MANUAL TYPE 1 REPORTS TT
    01/15/2013 SYSTEM TYPE 2 EMAIL TA
    01/13/2013 SYSTEM TYPE 1 REPORTS TS

    I would like for the user to enter the date range when opening the report (I can do that part). If a user ran the report for 01/01/2013 - 01/31/2013, I want to see the result as follow:

    UPDATE TYPE
    MANUAL 4
    SYSTEM 5

    COVERAGE TYPE
    Type 2 5
    Type 1 4

    NOTIFY SOURCE
    EMAIL 3
    REPORTS 3
    ANALYSIS 2
    CALLS 1



    I guess my issue is I don't know how to add the count query to give me the result I seek.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,921
    Use IIf expressions in textboxes in group or report header/footer.

    Sum(IIf([Update Type]="Manual",1,0)

    Sum(IIf([Update Type]="System",1,0)
    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
    Aloupha is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2009
    Posts
    26
    Quote Originally Posted by June7 View Post
    Use IIf expressions in textboxes in group or report header/footer.

    Sum(IIf([Update Type]="Manual",1,0)

    Sum(IIf([Update Type]="System",1,0)
    Thanks! that's exactly what I was looking for. I kept trying to do it with count().

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

Similar Threads

  1. Replies: 1
    Last Post: 06-21-2013, 12:07 PM
  2. Replies: 2
    Last Post: 04-10-2013, 03:54 PM
  3. Replies: 6
    Last Post: 10-30-2012, 11:36 AM
  4. Report which only counts
    By imintrouble in forum Access
    Replies: 1
    Last Post: 02-16-2012, 03:31 PM
  5. Multiple counts/sums needed
    By Audreysfirstdaughter in forum Queries
    Replies: 6
    Last Post: 05-25-2011, 02:14 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