ste4en
Technical User
- Aug 1, 2001
- 69
I have some data as shown below. It is storted by the qryLinks_link field (name and date) then by counter. I need to change the job number when it is 201901.
For each qryLink_link when the first jobnumber is 201901 it needs to be replaced with the jobnumber in the next record. If there is only one it stays as it is.
The 201901 jobnumber is always the first jobnumber for each qryLinks_links group.
Example of before and after is below.
Thanks
Steve
Change this
qryLinks_link Counter JobNumber
Abney, Timothy -1/1/2007 158651 201901
Abney, Timothy -1/10/2007 166861 201901
Abney, Timothy -1/10/2007 167474 4021133
Abney, Timothy -1/11/2007 168070 201901
Abney, Timothy -1/12/2007 169004 201901
Abney, Timothy -1/12/2007 169392 4021133
Abney, Timothy -1/12/2007 169402 4021126
Abney, Timothy -1/12/2007 169987 4021444
Abney, Timothy -1/13/2007 170121 201901
Abney, Timothy -1/13/2007 170660 4021112
qryLinks_link Counter JobNumber
Abney, Timothy -1/1/2007 158651 201901
Abney, Timothy -1/10/2007 166861 4021133
Abney, Timothy -1/10/2007 167474 4021133
Abney, Timothy -1/11/2007 168070 201901
Abney, Timothy -1/12/2007 169004 4021133
Abney, Timothy -1/12/2007 169392 4021133
Abney, Timothy -1/12/2007 169402 4021126
Abney, Timothy -1/12/2007 169987 4021444
Abney, Timothy -1/13/2007 170121 4021112
Abney, Timothy -1/13/2007 170660 4021112
For each qryLink_link when the first jobnumber is 201901 it needs to be replaced with the jobnumber in the next record. If there is only one it stays as it is.
The 201901 jobnumber is always the first jobnumber for each qryLinks_links group.
Example of before and after is below.
Thanks
Steve
Change this
qryLinks_link Counter JobNumber
Abney, Timothy -1/1/2007 158651 201901
Abney, Timothy -1/10/2007 166861 201901
Abney, Timothy -1/10/2007 167474 4021133
Abney, Timothy -1/11/2007 168070 201901
Abney, Timothy -1/12/2007 169004 201901
Abney, Timothy -1/12/2007 169392 4021133
Abney, Timothy -1/12/2007 169402 4021126
Abney, Timothy -1/12/2007 169987 4021444
Abney, Timothy -1/13/2007 170121 201901
Abney, Timothy -1/13/2007 170660 4021112
qryLinks_link Counter JobNumber
Abney, Timothy -1/1/2007 158651 201901
Abney, Timothy -1/10/2007 166861 4021133
Abney, Timothy -1/10/2007 167474 4021133
Abney, Timothy -1/11/2007 168070 201901
Abney, Timothy -1/12/2007 169004 4021133
Abney, Timothy -1/12/2007 169392 4021133
Abney, Timothy -1/12/2007 169402 4021126
Abney, Timothy -1/12/2007 169987 4021444
Abney, Timothy -1/13/2007 170121 4021112
Abney, Timothy -1/13/2007 170660 4021112