I've recently completed my Work Instructions database and now I want to create a Report which shows each Instruction. Below is a simplified version of my database and problem.
I want to populate the Report with data from multiple tables. All the tables are related to eachother. These are my tables:
I have a mainform (mainForm) with a header and a footer. On this mainform I have a Subform (subForm1). This subform contains another subform (subsubForm1). The height of subsubform1 is 3", the height of subForm1 is 6". This ensures that on each Report page there are two subsubForm1's visible.
Subsubform1 contains 4 textboxes to show Part names, 4 textboxes for their quantities, 1 textbox for the Step description and 1 image control to display a picture.
Normally you bound a control to the form and the form to a table. But my problem is that each StepID contains multiple PartID's which are stored in another table.
Can someone point me in the right direction?
I want to populate the Report with data from multiple tables. All the tables are related to eachother. These are my tables:
Code:
[U][B]tblSteps[/B][/U] StepID Description Picture 1 AAA C://xxxx 2 BBB C://xxxx 3 CCC C://xxxx Etc. [B][U]tblStepParts[/U][/B] StepPartID StepID PartID Qty 1 3 8 3 2 3 6 3 3 3 3 4 4 3 1 4 5 2 2 1 6 2 3 10 7 1 3 6 8 1 5 4 9 1 2 1 Etc. [U][B]tblParts[/B][/U] PartID Name 1 WASHER 2 RING 3 NUT M8 4 COVER 5 CYLINDER 6 HOSE 7 PIN 8 BOLT M8 Etc.
Subsubform1 contains 4 textboxes to show Part names, 4 textboxes for their quantities, 1 textbox for the Step description and 1 image control to display a picture.
Normally you bound a control to the form and the form to a table. But my problem is that each StepID contains multiple PartID's which are stored in another table.
Can someone point me in the right direction?
Comment