Zydeceltico
Registered User.
- Local time
- Yesterday, 23:53
- Joined
- Dec 5, 2017
- Messages
- 843
Hi All -
General best-practices question. I have quite a few lookup tables. Currently each of the lookup tables has at least two fields: the first being an autonumber PK and the second being the recorded value.
For example tblGauge that has two fields the PK field has these values: 1,2,3,4,5,6,7,8. The Gauge field has these values: 20, 19, 18, 17, 16, 15, 14, 13. These are material thicknesses that we use in products. This is a pretty finite list that won't change much if ever. Is this best practice? I'm thinking it may not be. This may be best used via a Value List right on the form.
Another lookup table is called tblMaterialCoatings. This table has the autonumber PK but the second field holds a string value (e.g., galvanized, coil coated, zinc phosphate, etc). This table of values is different in that, firstly it is strings and more importantly the values might be added to or subtracted from over time.
So am I wondering: 1) if I should do away with the PKs in both, either, or neither table and make "looking up" simpler in a combo box for instance and 2) in tblMaterialCoatings if I do away w/ the PK and just use the string values, I will be recording some string value in a field in my main table (instead of a Long) every time I enter a new job and I am wondering if that could be an issue later. I don't really see how - - but I am also less experienced than many of you.
Thoughts?
Thanks!
Tim
General best-practices question. I have quite a few lookup tables. Currently each of the lookup tables has at least two fields: the first being an autonumber PK and the second being the recorded value.
For example tblGauge that has two fields the PK field has these values: 1,2,3,4,5,6,7,8. The Gauge field has these values: 20, 19, 18, 17, 16, 15, 14, 13. These are material thicknesses that we use in products. This is a pretty finite list that won't change much if ever. Is this best practice? I'm thinking it may not be. This may be best used via a Value List right on the form.
Another lookup table is called tblMaterialCoatings. This table has the autonumber PK but the second field holds a string value (e.g., galvanized, coil coated, zinc phosphate, etc). This table of values is different in that, firstly it is strings and more importantly the values might be added to or subtracted from over time.
So am I wondering: 1) if I should do away with the PKs in both, either, or neither table and make "looking up" simpler in a combo box for instance and 2) in tblMaterialCoatings if I do away w/ the PK and just use the string values, I will be recording some string value in a field in my main table (instead of a Long) every time I enter a new job and I am wondering if that could be an issue later. I don't really see how - - but I am also less experienced than many of you.
Thoughts?
Thanks!
Tim