Results 1 to 6 of 6
  1. #1
    Adele is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    12

    Sum the Count

    Hi all,



    I have a table called ‘Invoice Details’ and would like to know the sum of the count of ‘Order Number’.

    Is it possible to sum the count of the column ‘Order Number’ in the same query?

    Many thanks,

    Adele

  2. #2
    fmdj is offline Novice
    Windows Vista Access 2007
    Join Date
    Jul 2011
    Posts
    2
    What do you mean by sum of the count? Is it not just the count?

  3. #3
    khalid's Avatar
    khalid is offline MS-Access Developer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2010
    Location
    Kuwait
    Posts
    244
    What query you use to get the sum?
    you might need to creat another query based on your query to get the sum of your counted record

  4. #4
    Adele is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    12
    i will be summing the count of the invoices for each month

  5. #5
    Adele is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    12
    Khalid, yeah i this is what i have already, i create the first query then use the count column in the next to group by month, i was wondering if i could get it down to just one action

  6. #6
    fmdj is offline Novice
    Windows Vista Access 2007
    Join Date
    Jul 2011
    Posts
    2
    Count of the invoices for each month :

    Code:
    SELECT month, COUNT([Order Number]) FROM [Invoice Details] GROUP BY month
    Count of all invoices:

    Code:
    SELECT COUNT([Order Number]) FROM [Invoice Details]

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

Similar Threads

  1. Count is off when using =Count
    By boywonder in forum Programming
    Replies: 3
    Last Post: 06-09-2011, 12:14 PM
  2. How to count characters?
    By Jorge Junior in forum Access
    Replies: 1
    Last Post: 05-22-2011, 08:07 PM
  3. GROUP and COUNT?
    By TheMoodyFiles in forum Queries
    Replies: 2
    Last Post: 02-10-2011, 05:50 PM
  4. count with conditional
    By humpz in forum Reports
    Replies: 3
    Last Post: 08-02-2009, 08:11 AM
  5. Using count or Dcount
    By ddcook in forum Access
    Replies: 0
    Last Post: 07-22-2009, 03:35 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