Results 1 to 2 of 2
  1. #1
    Rustin788 is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Mar 2014
    Posts
    47

    Combine Multiple Weeks of Data

    Hey,

    I am trying to create some sort of automated way that I can view the sales history for a product so I can determine how much should be ordered. The lead time between when I place an order and the order arrives is at most 8 weeks so I need to know how much we are selling in that time period. What I want to do is have the sum for each 8 week period. For instance when looking at the results the first result would be the sum of Week 1-8, the second result would be the sum of week 2-9, and so forth. Currently the data is broken up by week using: Format(DatePart('ww',[Date]),"00").



    Eventually I would like to be able to take those 8 week totals and have them automatically graphed in a form. I'm currently doing this all in excel and it takes a good day or two to getting everything graphed to be analyzed.

    Thanks for any help.


    ***I will try out what ranman256 suggested and bump this thread with results.
    Last edited by Rustin788; 09-24-2014 at 10:33 AM.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    I use a report form...on it is the date range in 2 boxs
    txtStartDate
    txtEndDate

    the query uses this as criteria. I can set it for 1 month, 1 day , etc...
    in the query: where [Date] between forms!frmRpts!txtStartDate and forms!frmRpts!txtEndDate

    If needed a 3rd txt box , txtRng, that translates the date range into a sort string.
    like "Rng April2014"
    or "Rng 140101 to 140105
    (you could use weeks)

    This way the data is not GROUPED BY the date, but summed by the txtRng box.

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

Similar Threads

  1. Querying specific weeks data within any given year?
    By McArthurGDM in forum Queries
    Replies: 1
    Last Post: 07-30-2014, 02:02 PM
  2. Replies: 3
    Last Post: 11-22-2011, 11:06 AM
  3. Comparing consecutive weeks data
    By foamcows in forum Queries
    Replies: 1
    Last Post: 08-16-2011, 08:20 PM
  4. Replies: 3
    Last Post: 12-14-2010, 08:35 AM
  5. Combine multiple rows into one cell
    By zarfx4 in forum Queries
    Replies: 8
    Last Post: 06-08-2009, 10:42 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