B
ben.passmore
Guest
Hello all.
I hope some of you can help me.
I have a table that looks like this
Code line number
100
100
100
222
222
222
222
222
333
444
444
555
I am trying to build a query that will add an incrementing line number for each code and start the count again from 1 when it meets a new code. The resulting table would look like this.
Code line number
100 1
100 2
100 3
222 1
222 2
222 3
222 4
222 5
333 1
444 1
444 2
The number of matching values in Code is variable.
I hope you can help me.
Regards,
Ben.
I hope some of you can help me.
I have a table that looks like this
Code line number
100
100
100
222
222
222
222
222
333
444
444
555
I am trying to build a query that will add an incrementing line number for each code and start the count again from 1 when it meets a new code. The resulting table would look like this.
Code line number
100 1
100 2
100 3
222 1
222 2
222 3
222 4
222 5
333 1
444 1
444 2
The number of matching values in Code is variable.
I hope you can help me.
Regards,
Ben.