HillTJ
To train a dog, first know more than the dog..
- Local time
- Yesterday, 12:37
- Joined
- Apr 1, 2019
- Messages
- 731
Hi,
I am writing a module for a manufacturing database. See summarised structure;
TBLRawMaterial
MaterialGradeID - PK
Supplier - lookup from TBLSupplier & filtered to show only "Material" suppliers.
TBLSupplier
SupplierID -PK (linked to Supplier in TBLRawMaterial)
TBLAssessment (my ambition is to have a subform that allows multiple supplier assessments each @ a different date)
AssessmentID-PK
AssessmentDate
ApprovalStatus (to contain whether the supplier is approved or not)
SupplierID-FK (ie a 1 to many relationship)
ApprovalID - PK (lookup linked to ApprovalID)
TBLApprovedSupplierStatus
ApprovalID-PK
I need to be able to select an approved raw material supplier to purchase raw materials. I need to assess the supplier periodically & record both date & assessment status (either approved not). Problem is that I need to look at the latest date & refer to that status.After all a supplier may not always be approved.
So I need to be able to select a "Raw Material" supplier who's latest assessment is "approved".
Maybe my structure is wrong or i've overthought it. I hope I've explained my dilemma sufficiently & would appreciate some help.
Thanks in advance.
I am writing a module for a manufacturing database. See summarised structure;
TBLRawMaterial
MaterialGradeID - PK
Supplier - lookup from TBLSupplier & filtered to show only "Material" suppliers.
TBLSupplier
SupplierID -PK (linked to Supplier in TBLRawMaterial)
TBLAssessment (my ambition is to have a subform that allows multiple supplier assessments each @ a different date)
AssessmentID-PK
AssessmentDate
ApprovalStatus (to contain whether the supplier is approved or not)
SupplierID-FK (ie a 1 to many relationship)
ApprovalID - PK (lookup linked to ApprovalID)
TBLApprovedSupplierStatus
ApprovalID-PK
I need to be able to select an approved raw material supplier to purchase raw materials. I need to assess the supplier periodically & record both date & assessment status (either approved not). Problem is that I need to look at the latest date & refer to that status.After all a supplier may not always be approved.
So I need to be able to select a "Raw Material" supplier who's latest assessment is "approved".
Maybe my structure is wrong or i've overthought it. I hope I've explained my dilemma sufficiently & would appreciate some help.
Thanks in advance.