Hi All,
Very new, but I thought I would post here as I imagine a solution would be a macro that one passes variables to...
Hi All,
I am a huge NOOB here, so please bare with me
I have Query1 which I would like to add a record set called Expenditure Years to.
The Expenditure Years are calculated based on multiples of the YearReplace record set, the sum of Year Replace and LifeExpectancy, until the end of the study period.
Basically, expenditures occur as iterative multiples until a criteria is reached.
For example, if the item was built in 2000, and has a life expectancy of 5 years, and has a life expectancy adjustment of 2 years (only is applied to first iteration), the multiples would list as below; until the base year+study period sum is reached.
Example: base year (1990) + study period years (30) = 2020
Expenditure 1 - Item 1 - 2007
Expenditure 2 - Item 1 - 2012
Expenditure 3 - Item 1 - 2017
it would stop here for Item 1 as 2017 + 5 >= 2020, BUT would continue to Item 2 and do it all over again.....
Expenditure 3 - Item 2 -.....
and so forth....
Can anyone come up with a VBA macro that accomplishes this? Any help is sincerely appreciated
Thank you
Very new, but I thought I would post here as I imagine a solution would be a macro that one passes variables to...
Hi All,
I am a huge NOOB here, so please bare with me
I have Query1 which I would like to add a record set called Expenditure Years to.
The Expenditure Years are calculated based on multiples of the YearReplace record set, the sum of Year Replace and LifeExpectancy, until the end of the study period.
Basically, expenditures occur as iterative multiples until a criteria is reached.
For example, if the item was built in 2000, and has a life expectancy of 5 years, and has a life expectancy adjustment of 2 years (only is applied to first iteration), the multiples would list as below; until the base year+study period sum is reached.
Example: base year (1990) + study period years (30) = 2020
Expenditure 1 - Item 1 - 2007
Expenditure 2 - Item 1 - 2012
Expenditure 3 - Item 1 - 2017
it would stop here for Item 1 as 2017 + 5 >= 2020, BUT would continue to Item 2 and do it all over again.....
Expenditure 3 - Item 2 -.....
and so forth....
Can anyone come up with a VBA macro that accomplishes this? Any help is sincerely appreciated

Thank you