I need some advice as to if I am approaching this problem the correct way.
Using CR 8.5
The table in question is an accounting table structured something like this:
Contract ID - year - pay_1 - Pay_2 - Pay - 3 (etc throught 12) - Change_1 - Change_2 (etc through 12)
110 01 500 0 0
121 02 0 0 100
So, contract 110 would have had a payment of 500 in Jan - 2001. And contract 121 had a payment of 100 in March of 2001. Make sense?
OK here is my delimma. I need to create a report that will show the payments for a particular contract during the last full month and for the same last full month for the previous calander year. I was thinking of creating 24 formulas (one for each month of 2002 and 2001) which would be pretty easy and then 2 master formulas that would look at the current date, figure out what was the last full month and then place the proper formula of the previous 24 in place.
Do you think this would be the best way to approach the issue? I was thinking that there is probably a very elegant way to construct the same thing using an array but have actually been able to formulate it in my head how to create it.
Also if my current thinking is the way to go for the master formula how could I compare the current date and calculate the last full month to get the proper formula returned?
Thanks always to the great advice given here.
Using CR 8.5
The table in question is an accounting table structured something like this:
Contract ID - year - pay_1 - Pay_2 - Pay - 3 (etc throught 12) - Change_1 - Change_2 (etc through 12)
110 01 500 0 0
121 02 0 0 100
So, contract 110 would have had a payment of 500 in Jan - 2001. And contract 121 had a payment of 100 in March of 2001. Make sense?
OK here is my delimma. I need to create a report that will show the payments for a particular contract during the last full month and for the same last full month for the previous calander year. I was thinking of creating 24 formulas (one for each month of 2002 and 2001) which would be pretty easy and then 2 master formulas that would look at the current date, figure out what was the last full month and then place the proper formula of the previous 24 in place.
Do you think this would be the best way to approach the issue? I was thinking that there is probably a very elegant way to construct the same thing using an array but have actually been able to formulate it in my head how to create it.
Also if my current thinking is the way to go for the master formula how could I compare the current date and calculate the last full month to get the proper formula returned?
Thanks always to the great advice given here.