Pedrowedro
Programmer
Hi,
Please can some one help with this. I am trying to get my head round cascading foreign and primary key data values.
I have three tables:
-tblContract
ContractID PK (autonumber)
BoNumber
-tblKnowledgeReport
KnowledgeID PK (autonumber)
ContractID FK
TypeOfReport
-tblMetricsReport
MetricsID
KnowledgeID FK
QuestionText
AnswerText
I am trying to append data to the tables above from the data in the following table:
-tblProjectParticulars
MetricsID
BoNumber
ReportType
QuestionText
Answer
If a BoNumber exists in tblContract then the ContractID is to be used to create an entry in the KnowledgeReport table ,triggering the autonumber of the KnowledgeID, which in turn passes this through to the tblMetrics.
If a BoNumber does exist then a new entry in tblContract is created with the new ContractID autonumber being used further in the branch.
Your help is very much appreciated
Pete
Please can some one help with this. I am trying to get my head round cascading foreign and primary key data values.
I have three tables:
-tblContract
ContractID PK (autonumber)
BoNumber
-tblKnowledgeReport
KnowledgeID PK (autonumber)
ContractID FK
TypeOfReport
-tblMetricsReport
MetricsID
KnowledgeID FK
QuestionText
AnswerText
I am trying to append data to the tables above from the data in the following table:
-tblProjectParticulars
MetricsID
BoNumber
ReportType
QuestionText
Answer
If a BoNumber exists in tblContract then the ContractID is to be used to create an entry in the KnowledgeReport table ,triggering the autonumber of the KnowledgeID, which in turn passes this through to the tblMetrics.
If a BoNumber does exist then a new entry in tblContract is created with the new ContractID autonumber being used further in the branch.
Your help is very much appreciated
Pete