D
doyle60
Klatuu has been kind enough to help me in my previous postings, titled
"How to Find the Date of Last Change in Inventory." But seems to think
it too difficult to do here. I am hoping someone else here may have a
surprisingly elegant solution or be willing to work out the
difficulties.
The problem is this: Let's say I have a table that holds the inventory
Units every date I take the inventory. So in the below table, I have
taken the inventory data on 3/15, 3/30, 4/6, 4/15 and 5/30. I store
this information along with many other Styles and Colors (one style can
come in many colors) in a table. The keys being Style, Color and Date.
Style Color Units Date
1912 White 200 03/15/05
1912 White 50 03/30/05
1912 White 34 04/06/05
1912 White 200 04/15/05
1912 White 200 05/30/05
How do I get back the amount of days that the Style/Color stayed the
same value as the last Date? In other words, we are aging inventory.
How many days was 1912 White that 200 units it was on the last date of
inventory 5/30/05? The answer I want is the difference between 4/15/05
(when it was still 200) and 5/30 (the last day of inventory). That 34
units of 04/06/05 is the stopper. So the answer should be 45 days.
My goal is to get this data into a table by pressing a command button.
The table should look like this (adding in some other styles and
Colors):
Style Color Units Days LastDate
1912 White 200 45 05/30/05
1912 Black 2,400 54 05/30/05
2012 White 345 45 04/15/05
etc.
If it's in a table, I can work with the data a bit more, adding back
some filters and Descriptions of the product.
I write If--Else statements and a bit more complicated, but not that
complicated, VBA all day long, but not this type of thing. I will need
guidance throughout.
Thanks so much,
Matt
"How to Find the Date of Last Change in Inventory." But seems to think
it too difficult to do here. I am hoping someone else here may have a
surprisingly elegant solution or be willing to work out the
difficulties.
The problem is this: Let's say I have a table that holds the inventory
Units every date I take the inventory. So in the below table, I have
taken the inventory data on 3/15, 3/30, 4/6, 4/15 and 5/30. I store
this information along with many other Styles and Colors (one style can
come in many colors) in a table. The keys being Style, Color and Date.
Style Color Units Date
1912 White 200 03/15/05
1912 White 50 03/30/05
1912 White 34 04/06/05
1912 White 200 04/15/05
1912 White 200 05/30/05
How do I get back the amount of days that the Style/Color stayed the
same value as the last Date? In other words, we are aging inventory.
How many days was 1912 White that 200 units it was on the last date of
inventory 5/30/05? The answer I want is the difference between 4/15/05
(when it was still 200) and 5/30 (the last day of inventory). That 34
units of 04/06/05 is the stopper. So the answer should be 45 days.
My goal is to get this data into a table by pressing a command button.
The table should look like this (adding in some other styles and
Colors):
Style Color Units Days LastDate
1912 White 200 45 05/30/05
1912 Black 2,400 54 05/30/05
2012 White 345 45 04/15/05
etc.
If it's in a table, I can work with the data a bit more, adding back
some filters and Descriptions of the product.
I write If--Else statements and a bit more complicated, but not that
complicated, VBA all day long, but not this type of thing. I will need
guidance throughout.
Thanks so much,
Matt