Frizzellio
Technical User
I have three tables:
1. tblInspections
InspectionID (PK)
Inspector
DateInspected
2. tblInspectionItems
ItemID (PK)
Description
Reference
3. tblResults
ResultID (PK)
InspectionID
ItemID
Result
I want to add a record via a form button such that a new inspection is created adding all inspection items to that particular inspection record in tblResults. I think it should look something like this:
ResultID..InspectionID..ItemID..Result
1.........1.............1.......Pass/Fail
2.........1.............2.......Pass/Fail
3.........1.............3.......Pass/Fail
4.........2.............1.......Pass/Fail
5.........2.............2.......Pass/Fail
6.........2.............3.......Pass/Fail
etc
Am I thinking about this right?
If so, how do I do this via code?
If not, how would I go about connecting all inspection items (170 total) to every inspection record?
Thanks in advance!
1. tblInspections
InspectionID (PK)
Inspector
DateInspected
2. tblInspectionItems
ItemID (PK)
Description
Reference
3. tblResults
ResultID (PK)
InspectionID
ItemID
Result
I want to add a record via a form button such that a new inspection is created adding all inspection items to that particular inspection record in tblResults. I think it should look something like this:
ResultID..InspectionID..ItemID..Result
1.........1.............1.......Pass/Fail
2.........1.............2.......Pass/Fail
3.........1.............3.......Pass/Fail
4.........2.............1.......Pass/Fail
5.........2.............2.......Pass/Fail
6.........2.............3.......Pass/Fail
etc
Am I thinking about this right?
If so, how do I do this via code?
If not, how would I go about connecting all inspection items (170 total) to every inspection record?
Thanks in advance!