Results 1 to 4 of 4
  1. #1
    Leon_SF is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Feb 2012
    Posts
    5

    Need help with totals/grouping

    Hello -

    I'm pretty new to Access and this forum, and really appreciate any help I can get.

    I have a database that tracks, among other things, referrals. One table has the date the referral was received, and another table has the referral source. I want a query that returns the total number of referrals by referral source, for a time period specified by the user - something like this:

    Referral Source Number of referrals
    Phone 10
    Mail 4
    email 3

    I tried a single query, with three columns: Referral date (where I entered the parameter criteria), and two referral source columns, one with "Group By" in the "Total" row, and one with "Count" in the "Total" row. This returns the total number of each referral received for each day within the time period specified - something like this:

    Referral date Referral Source Number of Referrals
    1/1/12 Phone 2
    1/1/12 Mail 1
    1/2/12 Phone 2
    1/2/12 email 2

    It's close, but not quite what I need. How can I get the total amount of each referral source received during the specified time period, not broken down by day?



    Thanks for your help!!!

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    In the date column, change Group By to Where.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Leon_SF is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Feb 2012
    Posts
    5
    Thanks so much! I thought I might have to do something a lot more complicated, but this does exactly what I need. Thank you!!!!

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    No problem, and welcome to the site!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Reports Grouping Totals in details
    By slatterie in forum Reports
    Replies: 1
    Last Post: 01-27-2012, 07:10 PM
  2. Replies: 5
    Last Post: 12-06-2011, 11:18 AM
  3. Grouping
    By greg2725d in forum Reports
    Replies: 7
    Last Post: 09-29-2011, 10:00 AM
  4. Month totals and Year totals
    By marksnwv in forum Access
    Replies: 1
    Last Post: 08-05-2011, 10:13 AM
  5. Grouping
    By EricF in forum Reports
    Replies: 5
    Last Post: 07-18-2011, 03:58 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