Create a Parent-Child Form with Synchronized Views in Access 2016
Question details
Create a job form that lists selected fields for related parts and displays the selected part's additional fields in a single-record view.

- Product
- Microsoft Access 2016
- Device & OS
- not provided
- Scenario
- A user wants to view a job header, browse its related parts in a continuous form, and edit additional fields for the selected part.
- Observed behavior
- The desired layout has a job header, a four-field parts list, and a detail section that changes when the selected part changes.
Identify the job table's primary key, the matching foreign key in the job parts table, and the unique key for each part. The examples below use JobID and JobPartID; replace them with your actual field names.
Link a parts list and a synchronized detail subform
Use a parent form with two child subforms when the selected part's details should appear alongside the list.
An Access split form shows two views of the same record source. Separate linked subforms let the job header and its related parts use different layouts.
The following example uses a unique JobPartID to identify the selected part. Subform control names on the parent form may differ from the names of the forms they contain.
Create a single form bound to the job header table and a separate form bound to the job parts table. In the parts form's Property Sheet, set Default View to Continuous Forms and add the four fields you want to show.
Open the job form in Design View and add the parts form with the Subform/Subreport control. Select the subform control and set Link Master Fields to JobID and Link Child Fields to the matching job foreign key.
Add an unbound text box to the parent form and name it txtSelectedPartID in its Property Sheet. You can set its Visible property to No.
Create another form bound to the job parts table, set Default View to Single Form, and add the fields needed for editing. Add it to the parent as a subform control named sfrmPartDetail; set its Link Master Fields to txtSelectedPartID and Link Child Fields to JobPartID.
Open the continuous parts form in Design View. In its Property Sheet, choose Event > On Current > [Event Procedure], click the builder button, and add this code inside the procedure: If Me.NewRecord Or IsNull(Me!JobPartID) Then Me.Parent!txtSelectedPartID = Null Else Me.Parent!txtSelectedPartID = Me!JobPartID End If Me.Parent!sfrmPartDetail.Form.Requery
Open the parent form in Form View, select a job, and click different rows in the parts list. Confirm that the detail subform shows the selected part and that a blank new row does not show an unrelated record.

Open the selected part in a separate detail form
Use a separate form if an adjacent, automatically synchronized detail section is not essential.
Manage Job and Part Lists with WPS Spreadsheets
WPS Office is a free, lightweight alternative for working with Office documents in a familiar interface. WPS Spreadsheets can organize job and part lists, although it does not replace Access relational forms or fix Access form behavior.

Frequently Asked Questions
Can an Access split form show a job header and related parts?
A split form shows two views of the same record source. For a job header and related parts, use a parent form with a linked subform instead.
How do I show only four fields in the parts list?
Open the parts form in Design View, set its Default View to Continuous Forms, and add only the four fields you want visible. Keep the unique part key available to the form for synchronization.
Why is the detail subform showing the wrong part?
Check that the list form's On Current event writes the selected unique part key to the parent control. Then verify the detail subform's Link Master Fields and Link Child Fields properties and confirm that the code requeries the correct subform control.
What if I do not need the details beside the list?
Use a linked continuous or datasheet subform for the parts list and open a separate single form filtered to the selected part's unique key.




