From: Emgee on
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
--
Emgee truly grateful...
for help and to help
From: Emgee on
Please disregard the below. I used a solution provided by John Spencer in
another thread (using my data) and it worked.
--
Emgee truly grateful...
for help and to help


"Emgee" wrote:

> 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
> --
> Emgee truly grateful...
> for help and to help