G
Guest
I am creating a database to track performance of equipment by week and to
compare that to budgeted performance by week. Each piece of equipment has a
unique cost center number but that cost center number is entered for every
week so I can't use cost center as the primary key. Also, the week number is
entered for every cost center so I can't use that field. Auto numbering
won't work because the actual performance and the budgeted performance
tables need to be related by the same key and it is likely that the
information will never be entered in the same order. The combination of the
cost center and week number would be unique, however. I know I can highlight
both fields at the same time in the table design and assign a primary key
but I have learned never to take anything for granted. My question is if I
create a key in the way I just described am I creating a key that combines
both fields (which is what I think I want) or am I just creating two
separate primary keys that will trip me up latter. If the latter is the
case, how do create the key I need.
TIA
Steve H
compare that to budgeted performance by week. Each piece of equipment has a
unique cost center number but that cost center number is entered for every
week so I can't use cost center as the primary key. Also, the week number is
entered for every cost center so I can't use that field. Auto numbering
won't work because the actual performance and the budgeted performance
tables need to be related by the same key and it is likely that the
information will never be entered in the same order. The combination of the
cost center and week number would be unique, however. I know I can highlight
both fields at the same time in the table design and assign a primary key
but I have learned never to take anything for granted. My question is if I
create a key in the way I just described am I creating a key that combines
both fields (which is what I think I want) or am I just creating two
separate primary keys that will trip me up latter. If the latter is the
case, how do create the key I need.
TIA
Steve H