Hi All,
First post, so please move mod if in the wrong spot.
I'm trying to get my head around access databases that one of our suppliers sends to us on a monthly basis with statistics about our business.
Every month we can download an MDB with information about particular users (SubName - primary key) (SubNames do come and go, but not frequently) as well as the volume of each product they sold, and the overall value of sales of that product. They also include a 'period' field which shows the month the data is for, and have an overall total volume and total value field. This is shown below:
Period SubName Product1Volume Product1TotalValue Product2Volume Product2TotalValue Product3Volume Product3TotalValue Total Volume Total Value 201303 12235 100 100 100 100 100 100 300 300 201303 18426 155 150 155 150 155 150 465 450 201303 14647 55 500 55 500 55 500 165 1500 201303 12348 54864 25 54864 25 54864 25 164592 75 201303 12349 584 60 584 60 584 60 1752 180 201303 98765 1542 500 1542 500 1542 500 4626 1500 201303 98764 8451 500 8451 500 8451 500 25353 1500 201303 98763 5548 500 5548 500 5548 500 16644 1500 201303 98762 100 500 100 500 100 500 300 1500 201303 98761 209 448 209 448 209 448 627 1344 201303 56789 115 843 115 843 115 843 345 2529 201303 56780 15845 10 15845 10 15845 10 47535 30 201303 56781 51 854 51 854 51 854 153 2562
So I have an MDB for each month with this table (and a few others that we don't use)
So basically, for each and every month, the SubName will be repeated but with a different Period. (so Period 201303 will have a SubName 12235, and table 201302 will have a SubName 12235, but period 201202 may not have a SubName 12235 because it wasn't used until period 201208)
In addition, they also provide a separate table which ties SubName with some user-specific information. Importantly, SubName is not actually the user name, but is a generated ID of the user (and completely meaningless to us until tied with the CompanyName). We also have some other fields about them, so for example:
CompanyName SubName ExtraCategory ABC 12345 1 ABC 12346 1 ABC 12347 1 ABC 12348 1 ABC 12349 2 DEF 98765 1 DEF 98764 1 DEF 98763 1 DEF 98762 1 DEF 98761 1 GHI 56789 2 GHI 56780 2 GHI 56781 1
What I would then do is to filter by CompanyName in a query to show what purchasing habits of company ABC were for a particular month, and I also want ExtraCategory1 to be shown. I can do this quite easily for a single month through a query.
However, I would like to be able to run a filter for CompanyName so that it runs against all the different tables to give the results in a single query so that I can do a trend (as opposed to having to run it against each month individually).
The final spanner in the works is that I need to be able to easily modify any build so that each month I can add in the next period (and hopefully, remove the trailing period to give a 24 month view)
Any suggestions about how I would even begin to solve this problem? It is so totally outside my experience that I just have absolutely no idea . Thanks!