I'm a very new Access user, I have a copy of Access 2003 which I'm using to aggregate sales data which I'm then pulling down into pivot tables on excel. I do it this way as I'm the only one in my business with access and there are multiple people who need to use the data in their own analysis.
I have set up my data in tables and linked them and I made a query that I then use as the base for the pivot tables I pull.
I would like to be able to have aggregated relative time periods in the query, so people can choose, for example, latest 4 weeks, latest 12 weeks and Year to date, together with Year ago and 2 years ago.
I already have things like week numbers and period numbers in a table, and I've been manually updating some of the aggregated time periods, but I'm thinking there must be a way to do the updating automatically. I would like to add to this table headers that say 12 weeks, 4 weeks, Year to Date etc., an in the values have 12 weeks TY, 12 weeks YA, 12 Weeks 2YA, if that makes sense?
I must confess that my VBA is terribly basic - just recording and editing and no experience of SQL.
Does anyone have a link to a guide as to how to do this? I'm keen to learn, but my searching hasn't shown up anything.
Thank you in advance!