cbo help

G

Guest

i have a combo box showing hospitals names.Like "the harley street hospital"

and i use my form enter patients data. when i reached the field , i want
just to type "harley" to select the hospital.do i need to have a new field
with short form in the table"hospitals" i.e.for the above hospitals the short
form to be entered as Harley" or what should i do.
the cbo list i whant it to show the full hospital names.
 
R

Rick Brandt

mhmaid said:
i have a combo box showing hospitals names.Like "the harley street
hospital"

and i use my form enter patients data. when i reached the field , i
want just to type "harley" to select the hospital.do i need to have a
new field with short form in the table"hospitals" i.e.for the above
hospitals the short form to be entered as Harley" or what should i do.
the cbo list i whant it to show the full hospital names.

The AutoExpand behavior would let you do this as long as you enter the
characters at the beginning of the name. To enter "harley" when you really want
"the harley street hospital" could be difficult.

When you say..."the cbo list I want it to show the full hospital names"...do you
mean in the drop down list, what you see after making a selection (list not
dropped), or both?

You can add a field to the table used for the RowSource of the ComboBox and
enter one value while another value is stored, but whatever you see when the
list is dropped is what you have to type and that also has to be what you see
when the list is not dropped.

You could have another shorter field that you type and see in the ComboBox,
while displaying in a nearby TextBox the longer value. Would that suffice?
 

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