Results 1 to 6 of 6
  1. #1
    Savannah is offline Novice
    Windows 10 Access 2007
    Join Date
    Mar 2017
    Location
    Australia
    Posts
    14

    'Sum Of' and 'Start Date-End Date' clashing in query

    Hi,


    I have a table with members in it, and within that a sub-table that I can enter multiple shows, their dates and points earned for each show.

    I have put together a query on this table that includes a sum of all points by member.

    I would like to be able to include a 'Set Start Date and Finish Date' so I can do an annual query to see who has earned the most points in a 12 month period but when I add the date to the query I lose the 'Sum of all points' and each date has it's own entry (so I get the same member multiple times instead of one single total entry).

    Is there any way to get a total of all entry's by date range?

    Happy to share the database with anyone who might be able to assist.
    Cheers.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    Join the 2 tables,t.members, and tSubTable
    bring Down fields: memberName,event,EventDate
    visible fields are : memberName,Count(event)
    do not make EventDate visible.

    where: [eventDate]>=TxtStartDate and [eventDate]<=TxtEndDate

  3. #3
    Savannah is offline Novice
    Windows 10 Access 2007
    Join Date
    Mar 2017
    Location
    Australia
    Posts
    14
    Thank you, I will go and try that now

  4. #4
    Savannah is offline Novice
    Windows 10 Access 2007
    Join Date
    Mar 2017
    Location
    Australia
    Posts
    14
    Click image for larger version. 

Name:	Access.jpg 
Views:	11 
Size:	257.1 KB 
ID:	28132

    Hi, the date is no longer showing however it is still separating the individual events for each participant instead of totalling them which I need them to do. Hopefully the image may assist? Thank you again for any help.

  5. #5
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    try changing the group by in your date column to where

    Also date is not a good name for a field - date is a function that means todays date (like the now function which returns todays date and time)

  6. #6
    Savannah is offline Novice
    Windows 10 Access 2007
    Join Date
    Mar 2017
    Location
    Australia
    Posts
    14
    Whoohoooo! Thank you so MUCH Ajax! It worked.
    Love this forum!

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

Similar Threads

  1. Replies: 4
    Last Post: 11-20-2018, 11:57 PM
  2. Replies: 6
    Last Post: 03-02-2016, 12:58 PM
  3. Replies: 3
    Last Post: 02-16-2016, 05:02 PM
  4. Replies: 3
    Last Post: 08-24-2015, 03:30 PM
  5. Replies: 15
    Last Post: 04-06-2012, 10:57 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