Hi,
In VBA, I want to run an SQL command that will take Table 1 and make it look like Table2.
I've seen it done before (but can't remember how!). Anyway, here goes:
Table1
Field1 Field2 Field3
12345 123222 112223
122222 122222
18852 123125 121572
152145 115542
551155 455122
12348 123221 112523
122272 122282
The gap in Field 1 needs to be filled with the previous field value and then change when the value changes. So, the end result should be:
Table2
Field1 Field2 Field3
12345 123222 112223
12345 122222 122222
18852 123125 121572
18852 152145 115542
18852 551155 455122
12348 123221 112523
12348 122272 122282
Many thanks for any and all help,
--
SM
In VBA, I want to run an SQL command that will take Table 1 and make it look like Table2.
I've seen it done before (but can't remember how!). Anyway, here goes:
Table1
Field1 Field2 Field3
12345 123222 112223
122222 122222
18852 123125 121572
152145 115542
551155 455122
12348 123221 112523
122272 122282
The gap in Field 1 needs to be filled with the previous field value and then change when the value changes. So, the end result should be:
Table2
Field1 Field2 Field3
12345 123222 112223
12345 122222 122222
18852 123125 121572
18852 152145 115542
18852 551155 455122
12348 123221 112523
12348 122272 122282
Many thanks for any and all help,
--
SM