Others

Create a Parent-Child Form with Synchronized Views in Access 2016

Tauseeq MagsiTauseeq Magsi Nov 27, 2026 868 views

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.

Create a Parent-Child Form with Synchronized Views in Access 2016
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.
Before you start

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.

Solution 1Recommended

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.

1
Create the job and list forms

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.

2
Link the parts list to the job

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.

3
Add a selected-part control

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.

4
Add the part detail form

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.

5
Synchronize the selection

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

6
Test the forms

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.

Link a parts list and a synchronized detail subform
Use your actual names: Replace JobPartID, txtSelectedPartID, and sfrmPartDetail in the code and properties if your field or control names differ. Test edits in both subforms; changes may require a refresh to appear in the other view.
Free Microsoft Office alternative

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.

Organize job headers and part lists in spreadsheet tablesOpen and edit Microsoft Excel XLS and XLSX filesUse a familiar spreadsheet interface for an easier transitionWork with a free, lightweight office suite
microsoft office alternative - wps office

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.