Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combo box behaviours

Status
Not open for further replies.

g0ste

Technical User
Feb 16, 2003
95
AU
Hello guys!

I have a small problem:

I wish to create a combo box that contains numbers, 1, 2, 3... etc. These numbers are tied to text (for example - 1 = bob, 2 = fred, 3 = harry). I want the combo box to have a number in it to start (say 1), then when clicked, list the names of the values (bob, fred, harry instead of 1,2,3) in the same box. Once a selection is made, I want the number return in the box again.

I am not even sure if this is possible!

I know this is kinda badly described, but I think it is the best way to describe it!

Thanks in advance!! :)

Dan
 
Assuming you have two fields in your table, number and name, then use the bound to column property of the combobox to select the 2nd field and use the column widths to show just the first field ie 5cm,0cm.



Ian Mayor (UK)
Program Error
There's ALWAYS more than one way to skin a cat!
But only one way to get it RIGHT!
 
Ah hello, Ian.

Thanks for your swift reply!

So in essence, we will be showing the id and the text in the two fields?

I have six fields on the table (and working in design view of the form). Should I be working in the table design view?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top