common tasks table to be referred in other tables (1 Viewer)

Vector

New member
Local time
Yesterday, 18:40
Joined
Jun 27, 2017
Messages
6
Hi,
I have a common tasks table m-t-m:
tblPart: PartID, PartNumber, PartDescription
tblTest: TestID, TestNumber, TestTask, TestMinReq, TestMaxReq
tblPartTest: PTID, PartIDFK, TestIDFK

These tables have pre-defined part numbers, test tasks, requirements. e.g.
PartNumber: 111456, 111234, 23156A
Tasks: Measure resistance, Measure Inductance, Workmanship-Check (Y/N)

Now I have a part number being built and tested. Operator needs to create a new record for the part being built with a host of sub-records associated with that part and place actual value measured.

tblTransaction: TransID, PartID, Operator, Date
tblMeasurement: MeasureID, TestID
tblTransacMeasure: TransID, MeasureID, ActualMeasurement

Question1: Is the above logic correct?
Question2: How do I create a form with this setup for the operator to pick a part number from dropdown and see all the tasks and where he can enter actual readings across from each task.
 

Ranman256

Well-known member
Local time
Yesterday, 21:40
Joined
Apr 9, 2015
Messages
4,339
I use a list box, user dbl-clicks the items, they are added to the subform via append query.
like:

pick list states -lbls.png
 

Vector

New member
Local time
Yesterday, 18:40
Joined
Jun 27, 2017
Messages
6
Doesn't the append replicates data?
I am questioning
1- The logic of tblTransaction, tblMeasurement, tblTransacMeasure.
2- Getting the right IDs appended and use the IDs to pull the tasks and requirements, and then enter actual measurements.

Please help!
 

Pat Hartman

Super Moderator
Staff member
Local time
Yesterday, 21:40
Joined
Feb 19, 2002
Messages
43,223
Is the above logic correct?
I don't think so. I would add a type code to the part record and rather than m-m between tests and parts at this level, you would link tests to type codes. Then when a part is created, you would copy the necessary tests by matching on type code and append the tests to the PartTestResults table.
 

Users who are viewing this thread

Top Bottom