First, let me state first that I inherited this breeding system and design. Slowly, I'm try to make changes changes to make it more flexible. It is used by only 2-3 people but it is important to our company research work and holds 20-years data. >> I would like to convert a compound primary key into an autonumber type. I want a table [tblPedigrees] to identify unique pedigrees with a number. Currently, a pedigree consists of these independent fields:
CropsID: Number (1-4)
Type_Cross: Text, Any 1 of ~20 Single Letters
Cross_No: Text (6), 6 digits (eg. 005533) manual incremented
Sel: Text (1), Any 1 of ~20 Single Letters
Pol: Text (1), Any 1 of ~20 Single Letters
Met: Text (1), Any 1 of ~20 Single Letters
SelNo: Text (4), A combination of two parts
Example: X004988DAS0901
My immediate question is about the [Met] field. we use alpha codes: B,C,D,P,Y. For this group we behave one way & SelNo does not require a change. For codes M or S, a change to SelNo is required. The importance is in tracking. If we give every change in MET code a unique Pedigree ID, then I figure tracking will stop with each change. I thought I would create two groups of MET codes and generate a new PedigreeID only when there is a change from one group to another. This is probably not clear at all but I'll give it a try. This is plant breeding but maybe it will help to think of breeding horses or dogs.
I'm afraid I'm not experienced with SQL and work primarily with the grid, etc.
Thanks for any guidance!
CropsID: Number (1-4)
Type_Cross: Text, Any 1 of ~20 Single Letters
Cross_No: Text (6), 6 digits (eg. 005533) manual incremented
Sel: Text (1), Any 1 of ~20 Single Letters
Pol: Text (1), Any 1 of ~20 Single Letters
Met: Text (1), Any 1 of ~20 Single Letters
SelNo: Text (4), A combination of two parts
Example: X004988DAS0901
My immediate question is about the [Met] field. we use alpha codes: B,C,D,P,Y. For this group we behave one way & SelNo does not require a change. For codes M or S, a change to SelNo is required. The importance is in tracking. If we give every change in MET code a unique Pedigree ID, then I figure tracking will stop with each change. I thought I would create two groups of MET codes and generate a new PedigreeID only when there is a change from one group to another. This is probably not clear at all but I'll give it a try. This is plant breeding but maybe it will help to think of breeding horses or dogs.
I'm afraid I'm not experienced with SQL and work primarily with the grid, etc.
Thanks for any guidance!