S
Scott J.
I have 2 tables:
tblOrderDetails - ID (PK), OrderNumber, etc.
tblPersonnel - OrderNumber (PK), Initials
The OrderNumber are linked together. This allows the Order to be linked to
the correct personnel. Each table comes from separate imported data. It works
fine except...
1) Order Numbers are reused. I get around this by using a temp table to
import the data and then use an append Unique Records query to tblPersonnel.
- There are multiple OrderNumbers, therefore in the tblOrderDetails table,
but that is OK.
2) The real problem I see going forward is if the personnel changes.
- Say OrderNumber 1 was linked to Bob. Now Judy takes Bob's place and reuses
OrderNumber 1. Then I have OrderNumber 1 linked to two people, but the append
query will fail since the OrderNumber is a PK.
I could set both the OrderNumber and Initials fields as PK's. But the link
to tblOrderDetails won't work.
Do I have to add an Initials field to tblOrderDetails and forget the
tblPersonnel?
Thanks for the suggestions!
Scott J.
tblOrderDetails - ID (PK), OrderNumber, etc.
tblPersonnel - OrderNumber (PK), Initials
The OrderNumber are linked together. This allows the Order to be linked to
the correct personnel. Each table comes from separate imported data. It works
fine except...
1) Order Numbers are reused. I get around this by using a temp table to
import the data and then use an append Unique Records query to tblPersonnel.
- There are multiple OrderNumbers, therefore in the tblOrderDetails table,
but that is OK.
2) The real problem I see going forward is if the personnel changes.
- Say OrderNumber 1 was linked to Bob. Now Judy takes Bob's place and reuses
OrderNumber 1. Then I have OrderNumber 1 linked to two people, but the append
query will fail since the OrderNumber is a PK.
I could set both the OrderNumber and Initials fields as PK's. But the link
to tblOrderDetails won't work.
Do I have to add an Initials field to tblOrderDetails and forget the
tblPersonnel?
Thanks for the suggestions!
Scott J.