Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2020
    Posts
    1

    Count number of records per date

    Hi

    I have a query in my MS Access DB, approximately 15.000 rows, with a date (date and time per field) for each record.



    I want to create a query, where I can show how many entries there are for each date. Basically, my DB is linked to my Outlook inbox, and I want to be able to see how many emails I've received for each date.

    Is that possible?

    Thanks

    Jens

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    50,031
    Build an aggregate query with Count() function and GROUP BY date extracted from date/time. Something like:

    SELECT DateValue([fieldname]) AS Dte, Count("*") AS Cnt FROM tablename GROUP BY DateValue([fieldname]);
    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.

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

Similar Threads

  1. Count number of records <=4 hours
    By jbeets in forum Queries
    Replies: 6
    Last Post: 05-14-2020, 10:16 PM
  2. Count number of records
    By udigold1 in forum Queries
    Replies: 5
    Last Post: 02-28-2018, 08:37 AM
  3. Replies: 1
    Last Post: 01-24-2013, 05:50 PM
  4. Replies: 6
    Last Post: 07-25-2011, 01:54 PM
  5. count the number of records from a query
    By Nixx1401 in forum Queries
    Replies: 4
    Last Post: 05-24-2011, 06:45 PM

Tags for this Thread

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 - Senior Forums