Hi,
I have a query that pulls information I need and lists out certain "REP ID"s. I need some sort of update script the will take the first ten and assign them all the same 8 digit number in another column called "Sheet Barcode". It may not always end in exactly ten rows, but I would need a new number assigned for the following six, for example, as long as its still the same REP ID. Please see below for an example of what I am looking for.
Auto REP ID Sheet Barcode
1 22687 12345678
2 22687 12345678
3 22687 12345678
4 22687 12345678
5 22687 12345678
6 22687 12345678
7 22687 12345678
8 22687 12345678
9 22687 12345678
10 22687 12345678
11 22687 23456789
12 22687 23456789
13 22687 23456789
14 22687 23456789
15 22687 23456789
16 22687 23456789
17 22687 23456789
18 22687 23456789
19 22687 23456789
20 22687 23456789
21 22687 34567891
22 22687 34567891
23 22687 34567891
24 22687 34567891
25 33204 45678912
26 33204 45678912
27 33204 45678912
28 33204 45678912
29 33204 45678912
30 33204 45678912
31 33204 45678912
32 33204 45678912
33 33204 45678912
34 33204 45678912
The randomly generated number can be anything just as long as it's a number and is not duplicated. Thanks in advance for any insight!!
I have a query that pulls information I need and lists out certain "REP ID"s. I need some sort of update script the will take the first ten and assign them all the same 8 digit number in another column called "Sheet Barcode". It may not always end in exactly ten rows, but I would need a new number assigned for the following six, for example, as long as its still the same REP ID. Please see below for an example of what I am looking for.
Auto REP ID Sheet Barcode
1 22687 12345678
2 22687 12345678
3 22687 12345678
4 22687 12345678
5 22687 12345678
6 22687 12345678
7 22687 12345678
8 22687 12345678
9 22687 12345678
10 22687 12345678
11 22687 23456789
12 22687 23456789
13 22687 23456789
14 22687 23456789
15 22687 23456789
16 22687 23456789
17 22687 23456789
18 22687 23456789
19 22687 23456789
20 22687 23456789
21 22687 34567891
22 22687 34567891
23 22687 34567891
24 22687 34567891
25 33204 45678912
26 33204 45678912
27 33204 45678912
28 33204 45678912
29 33204 45678912
30 33204 45678912
31 33204 45678912
32 33204 45678912
33 33204 45678912
34 33204 45678912
The randomly generated number can be anything just as long as it's a number and is not duplicated. Thanks in advance for any insight!!
Comment