Display a Related Name from an ID in Microsoft Access
Question details
Display a person's full name automatically when their ID is selected on a Microsoft Access form.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- A data-entry form uses an ID stored in a transaction table, while the corresponding name is stored in a separate table.
- Observed behavior
- The user wants to select an ID and see the matching full name without duplicating the name in the transaction table.
Identify the ID field in the form's table and the ID and Full Name fields in the related table. The IDs should uniquely identify people in the related table and match the ID values used by the form.
Use a combo box to store the ID and display the name
Use this approach when the form should show a person's name while saving their ID in the transaction table.
The combo box stores the ID from its first column but displays the name from its second column. This avoids storing the same full name in both tables.
In the Navigation Pane, right-click the data-entry form and select Design View.
On the Design tab, select Combo Box and place it on the form. If a wizard opens, cancel it so you can set the properties directly.
Select the combo box and open Property Sheet. On the Data tab, set Control Source to the transaction table's ID field, set Row Source Type to Table/Query, and set Row Source to: SELECT ID, [Full Name] FROM [Table 1] ORDER BY [Full Name]; Replace the table and field names with your own.
In Property Sheet, set Bound Column to 1 and Column Count to 2. Set Column Widths to 0;2 so the ID is hidden and the name remains visible.
Save the form, switch to Form View, and choose a person from the combo box. The control should display the name while the record stores the corresponding ID.

Show related names in a report with a joined query
Use a query to retrieve full names alongside transaction records for a report.
Manage ID and name lists in WPS Spreadsheets
WPS Office is a free, lightweight Office alternative with a familiar interface. For spreadsheet-based lists, you can export Access data to Excel format and work with it in WPS Spreadsheets. WPS does not replace Microsoft Access forms or databases.

Frequently Asked Questions
Does the combo box save the name or the ID?
With Control Source set to the form's ID field and Bound Column set to 1, Access saves the ID. Hiding the first column lets the combo box display the name instead.
How can I show the name in a separate text box?
In Design View, add an unbound text box and set its Control Source to =[YourComboName].Column(1). Replace YourComboName with the combo box's Name property.
Why should I avoid copying Full Name into the transaction table?
Storing the name in both tables creates redundant data that can become inconsistent when a name changes. Store the ID in the transaction table and retrieve the name from the related table.
How do I display the name on a report?
Create a query that joins the transaction table to the people table on ID, include Full Name, and use the query as the report's Record Source.




