I have a table with 10M+ records - only 3 fields: counter, date, id
1 01/01/05 1234567
2 01/02/05
3 01/01/04
4 01/01/05 2345678
5 12/12/03 3333333
6 13/12/03
7 01/01/02
etc
I need to copy id to the next record until id is not null and next id is null to repeat the process:
1 01/01/05 1234567
2 01/02/05 1234567
3 01/01/04 1234567
4 01/01/05 2345678
5 12/12/03 3333333
6 13/12/03 3333333
7 01/01/02 3333333
Control and ' is too slow, I need a query, macro or code to do this job.
Any ideas?
Many thanks.
Caroline![[ponder] [ponder] [ponder]](/data/assets/smilies/ponder.gif)
1 01/01/05 1234567
2 01/02/05
3 01/01/04
4 01/01/05 2345678
5 12/12/03 3333333
6 13/12/03
7 01/01/02
etc
I need to copy id to the next record until id is not null and next id is null to repeat the process:
1 01/01/05 1234567
2 01/02/05 1234567
3 01/01/04 1234567
4 01/01/05 2345678
5 12/12/03 3333333
6 13/12/03 3333333
7 01/01/02 3333333
Control and ' is too slow, I need a query, macro or code to do this job.
Any ideas?
Many thanks.
Caroline
![[ponder] [ponder] [ponder]](/data/assets/smilies/ponder.gif)