Megawisdumb
Registered User.
- Local time
- Today, 04:33
- Joined
- Apr 18, 2002
- Messages
- 17
Below is the final 3 column output I need in a query or table. The source is a query with the [ID] and [seg] fields only. The relation field is simply the count of the "CLP" seg until another "CLP" seg is encountered. My question is can this be done within a standard query or is recordset code needed?
ID seg Relation
1 CLP 1
2 NM1 1
3 NM1 1
4 DTM 1
5 DTM 1
6 CLP 2
7 DTM 2
8 DTM 2
9 REF 2
10 CLP 3
11 SVC 3
12 DTM 3
13 DTM 3
ID seg Relation
1 CLP 1
2 NM1 1
3 NM1 1
4 DTM 1
5 DTM 1
6 CLP 2
7 DTM 2
8 DTM 2
9 REF 2
10 CLP 3
11 SVC 3
12 DTM 3
13 DTM 3