Results 1 to 5 of 5
  1. #1
    brentv911 is offline Novice
    Windows 11 Office 365
    Join Date
    Sep 2024
    Posts
    3

    Count the number of Specific Date occurences in a report

    Be Gentle. This is my first post.

    I have a database where i am tracking new applicants for a job. I have a field for "Testing Date". I made this a short text field since i wanted a drop down to only 2 specific dates. now i want to create a text field in the header that shows the number of each date occurrence on the report. I know i could do this with 2 different reports off of 2 queries, but i wanted everything on one report. Obviously i can't share the database as it has personal information in it. Below are a couple of screen shots from my report. The first is the header (still missing the 2nd text box). the 2nd image is the Testing Date column. How do i get it to count and display the number of occurrences for each date?






  2. #2
    brentv911 is offline Novice
    Windows 11 Office 365
    Join Date
    Sep 2024
    Posts
    3
    I kept working on this and managed to figure it out, thanks to another couple of posts on here. I just created a text box in the header and entered
    =Sum(IIf([Testing Date]="10/09/2024",1,0)) and this worked like a charm.

  3. #3
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556
    Nothing below?
    Please check your posts.
    You cannot paste pictures here like you can on other sites. You need to use the attachment option.

    I would always keep dates as dates.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  4. #4
    brentv911 is offline Novice
    Windows 11 Office 365
    Join Date
    Sep 2024
    Posts
    3
    Quote Originally Posted by Welshgasman View Post
    Nothing below?
    Please check your posts.
    You cannot paste pictures here like you can on other sites. You need to use the attachment option.

    I would always keep dates as dates.
    Oops. I will remember that for the next time.

    Normally i would have liked to keep dates as dates, but i wanted a drop down with only 2 options and i couldn't figure out
    now to do that as dates.

  5. #5
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556
    You just create a value list.
    https://www.google.com/search?q=acce...hrome&ie=UTF-8

    Alternatively have those two dates in a table, which would be my way probably, as when another date is needed, it is just added to the table as opposed to having to amend the form.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

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

Similar Threads

  1. Count number of occurences by day of week??
    By losingmymind in forum Queries
    Replies: 3
    Last Post: 09-19-2013, 06:21 PM
  2. Select last four occurences only
    By ahudson in forum Queries
    Replies: 1
    Last Post: 03-14-2013, 06:37 AM
  3. Count occurences of text in a query
    By funkygoorilla in forum Queries
    Replies: 5
    Last Post: 02-12-2012, 09:14 PM
  4. Counting text occurences
    By katie_88 in forum Queries
    Replies: 3
    Last Post: 07-19-2010, 10:46 AM
  5. Need Help counting occurences
    By anyoder in forum Queries
    Replies: 0
    Last Post: 03-09-2007, 08:53 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