If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Rolling Periods
I have a form that a user can enter the number of periods to review up to 24.
Current period (Nov 2009) is 23. How can I calculate the correct periods to sum. My statement would work something like this; (number of periods to review Example 4) - (current period Example 23) then add periods (19+20 +21+22). Easy enough but how do I handle when the period rolls back to 1. I thought about using a table but the number of variables would make this large. Is there a betterway? Thanks |
#2
|
|||
|
|||
Rolling Periods
One thought is to have another field to go along with the period - era.
-- Build a little, test a little. "mccloud" wrote: I have a form that a user can enter the number of periods to review up to 24. Current period (Nov 2009) is 23. How can I calculate the correct periods to sum. My statement would work something like this; (number of periods to review Example 4) - (current period Example 23) then add periods (19+20 +21+22). Easy enough but how do I handle when the period rolls back to 1. I thought about using a table but the number of variables would make this large. Is there a betterway? Thanks |
Thread Tools | |
Display Modes | |
|
|