G
GPO
Don't know wheter this is a programming question or an SQL question, but here
goes:
I have a list of date data that I want to transform from this:
MyID MyDate MyValue
1 1 Jan 05 0
1 3 Jan 05 1
1 7 Jan 05 1
1 9 Jan 05 0
2 2 Jan 05 0
2 7 Jan 05 1
3 1 Jan 05 1
3 6 Jan 05 0
..
..
..
To:
MyID MyDate MyValue
1 1 Jan 05 0
1 2 Jan 05 0
1 3 Jan 05 1
1 4 Jan 05 1
1 5 Jan 05 1
1 6 Jan 05 1
1 7 Jan 05 1
1 8 Jan 05 1
1 9 Jan 05 0
2 2 Jan 05 0
2 3 Jan 05 0
2 4 Jan 05 0
2 5 Jan 05 0
2 6 Jan 05 0
2 7 Jan 05 1
3 1 Jan 05 1
3 2 Jan 05 1
3 3 Jan 05 1
3 4 Jan 05 1
3 5 Jan 05 1
3 6 Jan 05 0
..
..
..
Note:
1. The original list is sorted frst by ID and then by date.
2. The difference between the first and second list is that the second has
all the missing dates included and the MyValue in the previously missing date
is whatever the MyValue was on the previous date.
Any assistance would be most welcome.
GPO
(Access 2000 - 2003)
goes:
I have a list of date data that I want to transform from this:
MyID MyDate MyValue
1 1 Jan 05 0
1 3 Jan 05 1
1 7 Jan 05 1
1 9 Jan 05 0
2 2 Jan 05 0
2 7 Jan 05 1
3 1 Jan 05 1
3 6 Jan 05 0
..
..
..
To:
MyID MyDate MyValue
1 1 Jan 05 0
1 2 Jan 05 0
1 3 Jan 05 1
1 4 Jan 05 1
1 5 Jan 05 1
1 6 Jan 05 1
1 7 Jan 05 1
1 8 Jan 05 1
1 9 Jan 05 0
2 2 Jan 05 0
2 3 Jan 05 0
2 4 Jan 05 0
2 5 Jan 05 0
2 6 Jan 05 0
2 7 Jan 05 1
3 1 Jan 05 1
3 2 Jan 05 1
3 3 Jan 05 1
3 4 Jan 05 1
3 5 Jan 05 1
3 6 Jan 05 0
..
..
..
Note:
1. The original list is sorted frst by ID and then by date.
2. The difference between the first and second list is that the second has
all the missing dates included and the MyValue in the previously missing date
is whatever the MyValue was on the previous date.
Any assistance would be most welcome.
GPO
(Access 2000 - 2003)