Results 1 to 2 of 2
  1. #1
    olive is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Jan 2018
    Posts
    1

    How to populate a table with prior week's data

    Hi everyone!



    I'm a complete newbie with Access, as I typically only ever have to use Excel for work.

    Unfortunately, I'm doing something that requires me to stitch together a lot of rows.

    I've managed to figure out how to get my access table to appear as follows:
    Date Department Category Subcategory Sales SalesQTY
    1/1/2018 Grocery Fruits Apple $0.25 1.00
    1/8/2018 Grocery Fruits Apple $0.50 2.00
    1/15/2018 Grocery Fruits Apple $0.75 3.00


    What I don't know, is how to populate my table with the prior week's information.
    Date Department Category Subcategory Sales QTY Prior Week1 Prior Week2
    1/1/2018 Grocery Fruits Apple $0.25 1.00
    1/8/2018 Grocery Fruits Apple $0.50 2.00
    1/15/2018 Grocery Fruits Apple $0.75 3.00 2.00 1.00

    Any guidance is very much appreciated!

  2. #2
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    The simple answer is, you wouldn't do that as you would be saving the same data repeatedly.
    The idea is that data should only be stored once

    So stick with the first table & if you need the additional columns, you do that using queries

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

Similar Threads

  1. Replies: 29
    Last Post: 05-02-2017, 04:38 PM
  2. Query dates for current week and prior
    By farmerde in forum Queries
    Replies: 3
    Last Post: 01-28-2016, 03:58 PM
  3. Replies: 26
    Last Post: 11-05-2015, 01:58 PM
  4. Replies: 9
    Last Post: 06-19-2015, 03:37 PM
  5. Replies: 3
    Last Post: 01-21-2015, 02:40 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