SkipVought
Programmer
Here's my sample table
The rules for a new column groupID are as follows:
[tt]
when OAI = 'OUT' then [prev groupID] + 1
else [prev groupID]
[/tt]
in order to get
Your expert advice is appreciated.
Skip,
[sub]
Just traded in my old subtlety...
for a NUANCE![/sub]
Code:
[b]
OAI[/b]
OUT
AT
AT
IN
OUT
IN
The rules for a new column groupID are as follows:
[tt]
when OAI = 'OUT' then [prev groupID] + 1
else [prev groupID]
[/tt]
in order to get
Code:
[b]
OAI groupID[/b]
OUT 1
AT 1
AT 1
IN 1
OUT 2
IN 2
Your expert advice is appreciated.
Skip,
[sub]
Just traded in my old subtlety...
for a NUANCE![/sub]