Hi,
I need a running count of one field AND reset on the change of anther field.
Examples below of current output and desired output.
My current query returns about 1700 records.
The columns/data looks like this:
JOB:............Part:.....Level:.....Seq
123:............3659........0.........3
123:............3672........0.........4
123:............0176........0........16
123:............1739........1........17
ZYX:............0271........1........18
ZYX:............3659........0.........3
ZYX:............3672........0.........4
ZYX:............0139........0.........7
QQQ:............0176........0........16
QQQ:............1739........1........17
QQQ:............0271........1........18
And this is what I really need.
JOB:............Part:.....Level:.....Seq.....RunnningCountOfSeq_ResetByJobValueChange
123:............3659........0.........3.........1
123:............3672........0.........4.........2
123:............0176........0........16.........3
123:............1739........1........17.........4
ZYX:............0271........1........18.........1
ZYX:............3659........0.........3.........2
ZYX:............3672........0.........4.........3
ZYX:............0139........0.........7.........4
QQQ:............0176........0........16.........1
QQQ:............1739........1........17.........2
QQQ:............0271........1........18.........3
A query would be ideal... rather than reports.
Since it is going to be used once or twice then discarded.
Thanks in advance
Bruce O
I need a running count of one field AND reset on the change of anther field.
Examples below of current output and desired output.
My current query returns about 1700 records.
The columns/data looks like this:
JOB:............Part:.....Level:.....Seq
123:............3659........0.........3
123:............3672........0.........4
123:............0176........0........16
123:............1739........1........17
ZYX:............0271........1........18
ZYX:............3659........0.........3
ZYX:............3672........0.........4
ZYX:............0139........0.........7
QQQ:............0176........0........16
QQQ:............1739........1........17
QQQ:............0271........1........18
And this is what I really need.
JOB:............Part:.....Level:.....Seq.....RunnningCountOfSeq_ResetByJobValueChange
123:............3659........0.........3.........1
123:............3672........0.........4.........2
123:............0176........0........16.........3
123:............1739........1........17.........4
ZYX:............0271........1........18.........1
ZYX:............3659........0.........3.........2
ZYX:............3672........0.........4.........3
ZYX:............0139........0.........7.........4
QQQ:............0176........0........16.........1
QQQ:............1739........1........17.........2
QQQ:............0271........1........18.........3
A query would be ideal... rather than reports.
Since it is going to be used once or twice then discarded.
Thanks in advance
Bruce O