How to Display Company Name Instead of ID in Microsoft Access
Question details
The user needs to store a company's ID as a foreign key in a database table but display the actual readable company name to users via forms or queries.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- Designing a relational database form or query where users need to interact with readable text (Company Name) instead of the stored numeric values (Company ID).
- Observed behavior
- Ensuring the database remains consistent by storing only the unique ID in related tables, while visually displaying the corresponding company name without creating duplicate data entries.
Verify that your tables have correctly defined primary keys (such as AutoNumber for CompanyID) and that the foreign key in your linked table is set to a standard Number data type (Long Integer), not Large Number.
Configure a Two-Column Combo Box in Forms
Use a combo box on your form with custom column widths to hide the numeric ID and display the readable company name.
By setting the column widths appropriately, Microsoft Access can store the bound column (the ID) in the underlying table while visually showing the second column (the company name) to the user.
Open your form in Design View, select the target combo box, and press F4 to open the Property Sheet.
Navigate to the Data tab and set the Row Source to: SELECT CompanyID, CompanyName FROM tblCompanies ORDER BY CompanyName;
Still in the Data tab, ensure the Bound Column is set to 1. This ensures the CompanyID is the value saved to your table.
Switch to the Format tab. Set the Column Count to 2, and change the Column Widths property to 0;1 (or 0";1"). This hides the first column (ID) and displays the second (Name).

Use Query Joins for Datasheet Views
Create a relational query to link tables and display the company name alongside related records in datasheet views.
Looking for a Lightweight and Free Office Suite?
While Microsoft Access is used for complex database management, for your everyday document processing, spreadsheets, and presentation needs, WPS Office offers a powerful, highly compatible, and free alternative to Microsoft Office. Enjoy a familiar interface and seamless migration without the heavy subscription fees.
- 1. Download and Install: Get the free WPS Office installer from the official website and complete the quick installation process.
- 2. Open Your Files: Directly open your existing Word, Excel, or PowerPoint documents—no format conversion is required.
- 3. Edit and Save: Edit your work using familiar tools and save them in standard formats like .docx and .xlsx to share with others.

Frequently Asked Questions
Why shouldn't I just save the company name directly in my data table?
Storing the company name directly in a secondary table creates redundant data. If a company changes its name, you would have to update it in every single record. Storing a unique ID prevents data inconsistencies and follows database normalization rules.
Why do I get a 'no unique index found' error when creating a relationship?
This error occurs if you try to enforce referential integrity on a field that isn't a primary key or doesn't have a unique index, such as a Company Name field. Table relationships should always be linked using the Primary Key (like CompanyID).
Should I use the 'Large Number' data type for foreign keys?
No, unless specifically required by extremely large datasets. It is best to match an AutoNumber primary key with a standard Number data type (specifically set to the Long Integer subtype) for your foreign key to ensure proper relationship enforcement.
Can I sort the combo box dropdown alphabetically by company name?
Yes. By adding 'ORDER BY CompanyName' to your combo box's Row Source SQL statement, the dropdown list will automatically sort the names alphabetically, making it much easier for users to find the right company.




