Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2009
    Posts
    2

    Unanswered: MS access Sum of Count

    Hi, I have a report that shows me the number of sales that each of my reps sold every day. (My querry did the math for me.... i.e. in the Total row, I have three different fields. SALESREP, SALESDATE and ID.. I "grouped" the SALESREP field and the SALESDATE field and I choose "Count" on the ID field. viola... it counts them per day)
    So it looks like this... (WITH A "between /and" Date Range)...

    10 John Smith 7-29-09
    4 John Smith 7-29-09
    6 John Smith 7-30-09
    7 John Smith 7-31-09

    5 Sue Jones 7-29-09
    6 Sue Jones 7-29-09
    3 Sue Jones 7-30-09
    12 Sue Jones 7-31-09

    ect....
    QUESTION....
    How do I add the total sales for each SALESREP?

    I tried running an expression in all different areas of a report... =sum([CountofID]) but I get errors.

    Thanks

  2. #2
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    Moved to Access topic
    George
    Home | Blog

  3. #3
    Join Date
    Aug 2009
    Posts
    2
    ttt (to the top)

  4. #4
    Join Date
    Nov 2007
    Location
    Adelaide, South Australia
    Posts
    4,049
    A typical sum would look like you posted =Sum([FieldnameInQuery]). Put that in the report's group header or footer for the SalesRep group.

    What errors are you getting?
    Owner and Manager of
    CypherBYTE, Microsoft Access Development Specialists.
    Microsoft Access MCP.
    And all around nice guy!


    "Heck it's something understood by accountants ... so it can't be 'that' difficult..." -- Healdem
    "...teach a man to code and he'll be frustrated for life! " -- georgev

Posting Permissions

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