ChiTownDiva
Technical User
I'm trying to hold some data for a period of time..
I have a table:
RC Code Count Count1 Count2
E8 26
S3 128
QB 56
This is the count is as of today. Next week (11/22), when I look at the table I want it to look like this:
RC Code Count Count1 Count2
E8 26 13
S3 128 122
QB 56 43
The week after that (11/29), I want the table to like like this:
RC Code Count Count1 Count2
E8 26 13 10
S3 128 122 111
QB 56 43 38
The Fourth week (12/6), I want it to look like this:
RC Code Count Count1 Count2
E8 13 10 10
S3 122 111 100
QB 43 38 26
So, I guess in a nutshell, I want the columns to roll based on the date.
I guess I need to know which direction I need to start in. I have the intial table built and populated, but I'm not sure how to write the code to delete the count column, move the data from Count1 and then populate the last count column.
Any help would be appreciated.
Thanks.
ChiTownDivaus
I have a table:
RC Code Count Count1 Count2
E8 26
S3 128
QB 56
This is the count is as of today. Next week (11/22), when I look at the table I want it to look like this:
RC Code Count Count1 Count2
E8 26 13
S3 128 122
QB 56 43
The week after that (11/29), I want the table to like like this:
RC Code Count Count1 Count2
E8 26 13 10
S3 128 122 111
QB 56 43 38
The Fourth week (12/6), I want it to look like this:
RC Code Count Count1 Count2
E8 13 10 10
S3 122 111 100
QB 43 38 26
So, I guess in a nutshell, I want the columns to roll based on the date.
I guess I need to know which direction I need to start in. I have the intial table built and populated, but I'm not sure how to write the code to delete the count column, move the data from Count1 and then populate the last count column.
Any help would be appreciated.
Thanks.
ChiTownDivaus
![[ponytails2] [ponytails2] [ponytails2]](/data/assets/smilies/ponytails2.gif)