E
Emgee
This is my current table "allunitbatch". Want to automatically rank the
batch Ids within each MD Batch Id group so it gives the results shown in the
Rank column below.
Batch Id MD Batch Id Rank
APPL-MOM-309-07-01 APPL-MOM-309 1
BANA-HTL-120-06-01 BANA-HTL-120 1
BANA-HTL-120-07-01 BANA-HTL-120 2
CHER-INF-142-07-02 CHER-INF-142 3
CHER-INF-142-06-01 CHER-INF-142 1
CHER-INF-142-07-01 CHER-INF-142 2
Tried the following as a calculated field but it didn't work:
Rank: DCount("*","allunitbatch","MD Batch Id = """ & [MD Batch Id] & """ and
Batch Id >" & Batch Id) + 1
batch Ids within each MD Batch Id group so it gives the results shown in the
Rank column below.
Batch Id MD Batch Id Rank
APPL-MOM-309-07-01 APPL-MOM-309 1
BANA-HTL-120-06-01 BANA-HTL-120 1
BANA-HTL-120-07-01 BANA-HTL-120 2
CHER-INF-142-07-02 CHER-INF-142 3
CHER-INF-142-06-01 CHER-INF-142 1
CHER-INF-142-07-01 CHER-INF-142 2
Tried the following as a calculated field but it didn't work:
Rank: DCount("*","allunitbatch","MD Batch Id = """ & [MD Batch Id] & """ and
Batch Id >" & Batch Id) + 1