Combo Box - drop down list

J

Jim Smith

Hello,

I want to place a combo box on a form. The contents of the
combo/list will be based on a query.

I will be selecting two fields from a table:

employeeID
employeeName

I want employee name only to appear in the combo box drop-
down list but I want to use employeeID as the field that
updates the control source.

I don't seem to be able to do this - the best I can do is
to create a combo box with both fields in the drop-down
list. Not what I want at all!

Any help would be greatly appreciated.

Thanks

Jim
 
D

Douglas J. Steele

Put both fields in the combo box, but set the Column Width for the first
column (employeeID) to 0. (The Column Width property accepts a number of
semi-colon delimited widths, one for each field in the Row Source) Leave the
Bound Column to 1 so that the employeeID is what's stored in the bound
field.
 
J

Jim Smith

Thankyou.
-----Original Message-----
Put both fields in the combo box, but set the Column Width for the first
column (employeeID) to 0. (The Column Width property accepts a number of
semi-colon delimited widths, one for each field in the Row Source) Leave the
Bound Column to 1 so that the employeeID is what's stored in the bound
field.

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)






.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top