Question : Combo Box Custom Row Source

I have a combo box, though vba I have a query for the rowsource .
select prefrix, id, postfix from emp

it show in the combo box fine I want it to return the ID but it puts the prefix in the combobox instead

Answer : Combo Box Custom Row Source

Access always selects the first column of the query to display and store. If you use select id, prefix, postfix from emp; instead, then it will display and store id once you select it. All three choices will still display when the menu is dropped down.
Random Solutions  
 
programming4us programming4us