Combo Box

Parra

Well-known Member
Joined
Feb 21, 2002
Messages
752
I have a combo box on a form, I created it with the wizard to add the chosen item in a field of a table, but it add the ID# instead not the actual data.

How can I have it store the data and not the ID#?

Thanks
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
As a rule, combos always store the ID. This is necessary for data integrity later on -- if you have 2 clients with the same name, the ID will differentiate them.
Because of this I always use an ID field for storage of Combo data -- typically Long Integer, if you use AutoNumber. I then use combos on my reports to put whatever descriptive text I need for the report.
However, if you really want to store a non-ID value, you can change the BoundColumn property of the combo from 1 (the ID) to another field.

Denis
 
Upvote 0

Forum statistics

Threads
1,221,590
Messages
6,160,668
Members
451,662
Latest member
reelspike

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