Results 1 to 6 of 6
  1. #1
    SunTop is offline Advanced Beginner
    Windows 8 Access 2016
    Join Date
    Aug 2016
    Posts
    93

    Social Events Report

    Hello everyone
    I have a table that records social events that happens during the year, for example:

    EventID EventType EventDate
    1 Bingo Game 2/15/16
    2 Poker Game 2/20/16
    3 Barbecue 3/5/16
    4 Barbecue 5/11/16
    5 Poker Game 7/20/16

    I need to create a report from this table that counts and summarizes the events that happened each current week, current month and current year, for example:



    EventType CurrentWeek CurrentMonth CurrentYear
    Bingo Game 1 3 7
    Barbecue 2 8 15
    Poker Game 1 3 6

    I have created a query and then used the Totals column count function on the EventID column and EventDate column and Grouped By EventType column. Next I put a filter in the criteria of the EventDate column to get the current week, but then I have realized that I only can put one filter at a time in the EventDate column, so how will I get the Current month and Current Year columns in my report ?

  2. #2
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    I had to create my own tables using the few records you posted, so I'm not sure what will happen with the full data set.
    I created 3 queries: qryWeek, qryMonth and qyrYear. Then I created a Totals query to count the record from the 3 queries.

    The date should default to 2/16/2016....open the report.
    Attached Files Attached Files

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    7 is not the current year. It would be Year(eventDate)

  4. #4
    AccessPower's Avatar
    AccessPower is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Oct 2016
    Posts
    165
    Quote Originally Posted by ssanfu View Post
    I had to create my own tables using the few records you posted, so I'm not sure what will happen with the full data set.
    I created 3 queries: qryWeek, qryMonth and qyrYear. Then I created a Totals query to count the record from the 3 queries.

    The date should default to 2/16/2016....open the report.
    Props. this looks really good.

  5. #5
    SunTop is offline Advanced Beginner
    Windows 8 Access 2016
    Join Date
    Aug 2016
    Posts
    93
    Quote Originally Posted by ssanfu View Post
    I had to create my own tables using the few records you posted, so I'm not sure what will happen with the full data set.
    I created 3 queries: qryWeek, qryMonth and qyrYear. Then I created a Totals query to count the record from the 3 queries.

    The date should default to 2/16/2016....open the report.
    You have created two tables, five queries, one form, and one report to help me ...
    that is above and beyond Sir .. you really have walked the extra mile in this thread .. and your solution worked perfectly ...
    Thanks !!!!

  6. #6
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    It was easier to create the db than it to write a book trying to describe how to create the queries & report.

    Glad it worked for you.....

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

Similar Threads

  1. Social Security in Table and Reports
    By wes9659 in forum Access
    Replies: 2
    Last Post: 04-11-2014, 11:04 AM
  2. Timeline + Events Report
    By schwabe in forum Reports
    Replies: 1
    Last Post: 07-31-2013, 05:14 PM
  3. Using Social# as unique identifier
    By NEHicks in forum Database Design
    Replies: 3
    Last Post: 05-27-2011, 09:14 AM
  4. Show age from social security number
    By carstenhdk in forum Forms
    Replies: 5
    Last Post: 05-27-2010, 04:37 PM
  5. Events Report, please help!
    By Suzan in forum Reports
    Replies: 3
    Last Post: 04-19-2006, 01:11 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