How to Display Related Data with Microsoft Access Tab Controls
Question details
The user needs to display related information from multiple tables on a single form using tab controls and linked subforms.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- Creating an overview form based on a primary record (e.g., a pending-cases table) where individual tabs display specific related information from other data-entry tables.
- Observed behavior
- Setting up tab pages with embedded subforms linked to the main form, and resolving relationship errors such as 'join key is not in the recordset' during setup.
Ensure you have clearly identified the primary key in your main table and the corresponding foreign keys in your related tables before building the forms.
Create and Link Subforms on Tab Pages
This is the standard and recommended method for organizing related data across multiple tables using a main form and a tab control.
By placing a tab control on your primary form, you can embed multiple subforms, each representing a different related table, without cluttering the interface.
Create a new form and bind it to your primary table (e.g., the pending-cases table) using the Record Source property in the Property Sheet.
Open the form in Design View. From the Form Design toolbar, click the Tab Control icon and draw it onto your main form.
Click directly on the specific tab page where you want the related data. Once the tab page is highlighted, use the Subform/Subreport tool to draw a subform inside that page.
Bind the new subform to its related table. In the subform's Property Sheet under the Data tab, set the 'Link Master Fields' and 'Link Child Fields' to the compatible key fields that connect the two tables.

Troubleshoot 'Join Key is Not in the Recordset' Errors
Use this solution if Access prevents you from adding records or properly linking the subforms due to underlying relationship configuration issues.
Manage Your Data Effectively with WPS Office
While Microsoft Access is designed for complex relational databases, WPS Office offers a free, lightweight, and highly compatible alternative for everyday data management. With WPS Spreadsheet, you can organize data, perform advanced calculations, and create dynamic dashboards without the steep learning curve of traditional database software.
- 1. Download and Install: Get WPS Office for free from the official website and install it on your device.
- 2. Open Existing Files: Seamlessly open your existing Excel, Word, and PowerPoint files without losing any formatting.
- 3. Manage Data Easily: Use WPS Spreadsheet's advanced filtering and PivotTables to analyze relational data.

Frequently Asked Questions
Why is my subform showing up on all tab pages instead of just one?
This happens if the subform was placed on the main form rather than inside a specific tab page. To fix this, cut the subform, click directly on the desired tab page so it becomes highlighted, and paste the subform back in.
Can I link multiple subforms to the same main form using tab controls?
Yes, you can add multiple tab pages to a single tab control and place a different linked subform on each page, provided each subform's underlying table shares a valid relationship with the main form's primary table.
What does 'records cannot be added because the join key is not in the recordset' mean?
This error typically indicates a mismatch in table relationships or data types. You need to open the Relationships window and ensure that the foreign key in the related table exists and has a data type that is fully compatible with the primary key of the main table.
Do I have to use a tab control to display related data in Access?
No, you can place subforms directly on the main form without using a tab control. However, tab controls are highly recommended when dealing with multiple related tables because they help keep the user interface clean, organized, and easy to navigate.




