Results 1 to 4 of 4
  1. #1
    daasha is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Apr 2014
    Posts
    2

    Post monthly table with serveral dates count


    I need to be able to count how many fields per date. I've tried several ways to add this to my query, but nothing seems to combine the dates, it just gives me nothing or 1 as the count for every line even when it is the same date......

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    It sounds like you may want an Aggregate (Totals) Query, but it would probably be best if you can show a sample of your data and expected result, so we know for certain exactly what it is you are trying to do.

  3. #3
    daasha is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Apr 2014
    Posts
    2

    reply:

    Quote Originally Posted by JoeM View Post
    It sounds like you may want an Aggregate (Totals) Query, but it would probably be best if you can show a sample of your data and expected result, so we know for certain exactly what it is you are trying to do.

    Click image for larger version. 

Name:	Capture.PNG 
Views:	6 
Size:	12.8 KB 
ID:	16303
    Here is the table I am working from.

    Click image for larger version. 

Name:	Capture q.PNG 
Views:	5 
Size:	11.6 KB 
ID:	16304
    the query.
    Click image for larger version. 

Name:	Capture q results.PNG 
Views:	5 
Size:	19.7 KB 
ID:	16305
    the query results
    Instead of all one's, the lines should be combining the dates since I have more than one line with the same date, so I should have more than a count of 1.

  4. #4
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    That's because you have different values in all your Time fields.

    Trying doing an Aggregate Query where only add the following fields:
    - Clerk
    - Date
    - Date (add it a second time).

    Then, make it an aggregate where you group on the first two fields and count the third, i.e.
    - Clerk (Group By)
    - Date (Group By)
    - Date (Count)

    I think this will give you what you are looking for.

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

Similar Threads

  1. Replies: 2
    Last Post: 03-19-2014, 08:03 PM
  2. Replies: 6
    Last Post: 11-10-2012, 09:49 PM
  3. Replies: 1
    Last Post: 07-26-2012, 10:51 AM
  4. How To Count Dates on Report?
    By netchie in forum Access
    Replies: 18
    Last Post: 08-31-2011, 12:10 PM
  5. Count difference between two dates
    By Costa in forum Forms
    Replies: 3
    Last Post: 03-09-2010, 10:38 AM

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