Results 1 to 4 of 4
  1. #1
    coffeyja is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Jan 2012
    Posts
    2

    Weekly Total


    I have a data base that i am creating and I'm having problems consolidating weekend information. On a daily basis I enter data and that turn into a query at some point. For my weekend information want to summarize the daily data by a weekend date. I can get the data summarized however I cannot find a way to get the weekend date as part of my last query. Any suggestions?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    You want to summarize data by weekly?

    DatePart("ww",Date()) will return number of the week that date falls in within a calendar year. Which means 12/31/2012 and 1/1/2013 will not be captured in the same week number even though they are actually in the same week. Do you want data capture to cross years?

    If your data is multi-year, will have to extract the year from each date and include both the week and year in any filter/group/sort criteria.

    What day is end of week for you - Saturday?
    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.

  3. #3
    coffeyja is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Jan 2012
    Posts
    2

    Reply

    My weeks end on Saturday and I will need to have a weekend date that caputes across years.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    This will calculate the last day of the week for given date:

    [datefield] + (Weekday([datefield]) * (-1) + 1) + 6

    Use this expression to create a field in query and group records.
    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. Displaying weekly figures?
    By djclntn in forum Queries
    Replies: 8
    Last Post: 10-11-2011, 08:03 AM
  2. Weekly Totals
    By tcheck in forum Access
    Replies: 4
    Last Post: 09-27-2011, 09:35 AM
  3. difference between weekly sales
    By Fabdav in forum Access
    Replies: 1
    Last Post: 09-11-2011, 06:57 PM
  4. Weekly calculation query?
    By katie_88 in forum Queries
    Replies: 1
    Last Post: 07-13-2010, 10:54 AM
  5. weekly total
    By nkuebelbeck in forum Queries
    Replies: 2
    Last Post: 03-24-2010, 02:59 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