Results 1 to 3 of 3
  1. #1
    MJCRN is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2016
    Posts
    4

    Count Records between two dates

    Hi,
    I am trying to count the number of records (intake files in this case), that occurred between two dates. I have successfully created a query that provides the full list of these records (seen below), but I would like a count instead of the list. I keep getting errors when I try to use count functions.

    Table: Client_Intake
    Records to count: Date_of_Intake

    SELECT Client_Intake.Date_of_Intake, Client_Intake.First_Name, Client_Intake.Last_Name
    FROM Client_Intake
    WHERE (((Client_Intake.Date_of_Intake)>=[forms]![AdministrativeForm]![StartDatebox] And (Client_Intake.Date_of_Intake)<[forms]![AdministrativeForm]![EndDatebox]));

    Thanks in advance for any help!


    M

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    Try

    Code:
    SELECT Count(Date_of_Intake) as TotalIntakes 
    FROM
    (SELECT Client_Intake.Date_of_Intake, Client_Intake.First_Name, Client_Intake.Last_Name
    FROM Client_Intake
    WHERE (((Client_Intake.Date_of_Intake)>=[forms]![AdministrativeForm]![StartDatebox] And (Client_Intake.Date_of_Intake)<[forms]![AdministrativeForm]![EndDatebox])))

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870

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

Similar Threads

  1. Replies: 1
    Last Post: 06-25-2015, 01:12 PM
  2. Replies: 5
    Last Post: 07-12-2014, 02:55 PM
  3. COUNT Group Count Records COUNT FUNCTION
    By PMCOFFEY in forum Access
    Replies: 9
    Last Post: 11-09-2012, 09:40 PM
  4. Replies: 1
    Last Post: 07-26-2012, 10:51 AM
  5. How To Count Dates on Report?
    By netchie in forum Access
    Replies: 18
    Last Post: 08-31-2011, 12:10 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