Stephd8459
Registered User.
- Local time
- Yesterday, 18:54
- Joined
- Jun 29, 2010
- Messages
- 31
Hi all,
Looking for some help with my access code. Hopefully I can explain this.
I have a DB with some dates tracking contracts - ContractEffectiveDate and ContEndDate and then a dollar amount assigned to this for the year of the contract.
I have worked out a calculation that determines the monthly cost by determining how many months and divding into the total cost but now I need to assign those month cost to the month in the appropriate year.
So an Example ContractEffectiveDate = 06/01/2010 ContEndDate = 05/31/2011
I want to be able to pull a report for Q4 2010 cost so it should only include Oct Nov Dec for this contract.
I was thinking I needed to create an Array and get the months something like this:
ReDim aryM((Month(Forms!NumberOfMonth.ContractEffectiveDate)) To (Month(Forms!NumberOfMonth.ContEndDate)))
But the syntax on that doesn't seem to work.
If anyone has any suggestions or has seen something like this please point me in the right direction.
Thanks Steph
Looking for some help with my access code. Hopefully I can explain this.
I have a DB with some dates tracking contracts - ContractEffectiveDate and ContEndDate and then a dollar amount assigned to this for the year of the contract.
I have worked out a calculation that determines the monthly cost by determining how many months and divding into the total cost but now I need to assign those month cost to the month in the appropriate year.
So an Example ContractEffectiveDate = 06/01/2010 ContEndDate = 05/31/2011
I want to be able to pull a report for Q4 2010 cost so it should only include Oct Nov Dec for this contract.
I was thinking I needed to create an Array and get the months something like this:
ReDim aryM((Month(Forms!NumberOfMonth.ContractEffectiveDate)) To (Month(Forms!NumberOfMonth.ContEndDate)))
But the syntax on that doesn't seem to work.
If anyone has any suggestions or has seen something like this please point me in the right direction.
Thanks Steph