Others

How to Automatically Display Related Access Form Values

Muhammad TalhaMuhammad Talha Nov 3, 2026 871 views

Question details

The user needs to display related information, such as trainer codes, status, and attachments, automatically on an Access form when a specific formation or trainer is selected.

How to Automatically Display Related Values in Access Forms
Product
Microsoft Access
Device & OS
not provided
Scenario
Designing a data entry or view form in a relational database where selecting one record from a dropdown should auto-fill or display associated details.
Observed behavior
The form needs to be configured to show related values without manually duplicating data entries across tables, utilizing relational database principles.
Before you start

Ensure your database tables are properly related using primary and foreign keys, and that you have your target form opened in Design View.

Solution 1Recommended

Configure Combo Boxes and Unbound Controls

Use a combo box to store the foreign key while displaying descriptive text, then use unbound text boxes to show the additional related columns.

In a properly normalized database, you should store primary keys as foreign keys rather than duplicating related data. You can pull multiple columns of related data into a combo box and display them seamlessly on your form.

1
Set up the Combo Box Row Source

Select your combo box in Design View. In the Property Sheet, set the Control Source to your foreign key field. Set the Row Source to a query that includes the primary key and all related fields you want to display (e.g., TrainerID, TrainerName, Status).

2
Adjust Column Properties

Still in the Property Sheet, go to the Format tab. Set the 'Column Count' to match the number of fields in your query (e.g., 3). Set 'Column Widths' to hide the ID column and show the text (e.g., 0 inches; 1.5 inches; 1 inch).

3
Add Unbound Text Boxes

Add text box controls to your form where you want the related data (like Status or Trainer Code) to appear. Delete their attached labels if they are not needed.

4
Set Control Source Expressions

In the Property Sheet for each unbound text box, go to the Data tab. Set the Control Source using the expression =cboName.Column(X), replacing 'cboName' with the actual name of your combo box and 'X' with the column index you want to display.

Configure Combo Boxes and Unbound Controls
Column Indexing: Remember that Access combo box columns are zero-indexed. The first column is Column(0), the second is Column(1), and the third is Column(2).
Free Microsoft Office alternative

Need a Lightweight Office Suite for Daily Tasks?

While Microsoft Access is a specialized tool for complex relational databases, for your everyday documentation, data analysis, and presentation needs, WPS Office offers a free, lightweight, and highly compatible alternative to Microsoft Office.

  1. 1. Download WPS Office: Visit the official WPS website and download the free installer tailored to your operating system.
  2. 2. Install and Launch: Run the installation file and open WPS Office on your computer.
  3. 3. Open Your Documents: Open your existing Word, Excel, or PowerPoint files directly in WPS Office to continue your work with perfect format compatibility.
Fully compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx).Lightweight installation that runs smoothly on Windows, Mac, Linux, and mobile devices.Built-in PDF editing tools for seamless document management.Familiar user interface requiring no learning curve for Microsoft Office users.
microsoft office alternative - wps office

Frequently Asked Questions

Why is my unbound text box showing a #Name? error or remaining blank?

This usually happens if the combo box's Column Count property is lower than the index you are trying to access. Ensure the Column Count on the Format tab of the combo box matches the total number of fields in the Row Source query.

Do I need to write VBA code to update the related values?

No, using the =cboName.Column(index) expression in the Control Source of an unbound text box automatically updates the displayed value whenever the combo box selection changes, without requiring any VBA macros.

How do I hide the primary key in my combo box but still save it to the table?

Set the combo box's Bound Column to the primary key column (usually 1), and then set its Column Widths property to 0 for the first column (e.g., 0";1.5"). This visually hides the ID while displaying the text, but Access still stores the hidden ID in the database.