A
Anthony W
I have a table with Four Primary Keys.
Below is an example with a couple of extra fields with
it. The first four fields are my keys.
Learn_id Provi_id Lprog_id Lacti_id Qual_ref
AW000001 T0000122 01160606 001 Q1053546
My Learn_id field is generated from another table as is
the provi_id and Lprog_id.
So when i add a new record for this table the Lacti_id is
the field that makes it unique.
I need a way of adding a number to the lacti_id field so
when you add a new record, it add the next number along to
lacti_id field. To do this it needs to be gouped by the
first three fields (i think).
Below is an example of i would like it to look:-
Learn_id Provi_id Lprog_id Lacti_id Qual_ref
AW000001 T0000122 01160606 001 Q1053546
AW000001 T0000122 01160606 002 Q1023528
CY000012 T0000122 18062003 001 Q1052233
CY000012 T0000122 18062003 002 10003268
CY000012 T0000122 18062003 003 10003265
The first three fields stay the same and the Lacti_id
field is a number field that ranges from 1 - 99 and starts
at one for each person.
I hope this explains everything clearly enough.
Thanks for any help given.
Anthony
Below is an example with a couple of extra fields with
it. The first four fields are my keys.
Learn_id Provi_id Lprog_id Lacti_id Qual_ref
AW000001 T0000122 01160606 001 Q1053546
My Learn_id field is generated from another table as is
the provi_id and Lprog_id.
So when i add a new record for this table the Lacti_id is
the field that makes it unique.
I need a way of adding a number to the lacti_id field so
when you add a new record, it add the next number along to
lacti_id field. To do this it needs to be gouped by the
first three fields (i think).
Below is an example of i would like it to look:-
Learn_id Provi_id Lprog_id Lacti_id Qual_ref
AW000001 T0000122 01160606 001 Q1053546
AW000001 T0000122 01160606 002 Q1023528
CY000012 T0000122 18062003 001 Q1052233
CY000012 T0000122 18062003 002 10003268
CY000012 T0000122 18062003 003 10003265
The first three fields stay the same and the Lacti_id
field is a number field that ranges from 1 - 99 and starts
at one for each person.
I hope this explains everything clearly enough.
Thanks for any help given.
Anthony