List box Values

J

Jez

Hi, I have a list box on a form but what I am wanting to do is this...

I have a code that represents different values eg
1 = British
2= American
3= French

when I am inputing the data I want to just input the number in the list box
and then the value be shown as the description.

How can this be done or can it be done in a text box or just list box?

Jez
 
S

Scott McDaniel

Hi, I have a list box on a form but what I am wanting to do is this...

I have a code that represents different values eg
1 = British
2= American
3= French

when I am inputing the data I want to just input the number in the list box
and then the value be shown as the description.

You can't really "input" a value in a Listbox; it's a "readonly" control. If you want your users to be able to select
from the list, then consider using a Combo with the LimitToList property set to True.

You could, I suppose do this with a textbox and listbox, but that's pretty much what a combo is ... so why re-invent the
wheel.

Scott McDaniel
scott@takemeout_infotrakker.com
www.infotrakker.com
 

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