Combo box on form displays primary key not data

Alriemer

Board Regular
Joined
Aug 18, 2002
Messages
102
I have created a lookup 1-to-many relationship to let a user select one of several values for a certain field. (The table contains information about classical music composers and the field is a list of eras - classical, romantic etc.)

When I edit the table directly, in datasheet view, the relationship is represented by a combo box with a menu of the eras (there are about 10 of them, listed in a separate table).

However, in the form which I am building to update the table, the combo box for the same field only displays the primary key, which is a meaningless auto number. How can I get the combo to display the actual options (column 2 vs. the autonumber in col 1)? :oops:

Thanks
alriemer
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
In the Combo Box's Properties:
-Format->Column Count->Type in 2
-Column Widths->0'';1.5''
or however wide you'd like your visible column; the important thing is that the first column's width is set to 0.
 
Upvote 0

Forum statistics

Threads
1,221,596
Messages
6,160,716
Members
451,665
Latest member
PierreF

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top