Combo Listbox, how?

D

Doug Staubach

I encountered the same problem - hopefully MS will add
this control soon, but until they do, try this:

(1) Create a new drop-down listbox.
(2) Open the properties for the listbox you just created.
(3) Click the ADD button to create a new drop-down item.
(4) In the top box (value), type the value that you
actually want to display on the RIGHT side of your drop-
down list - this is the value that will actually be saved
in the database (for example: JACCA)
(5) In the bottom box (display name), type the value that
you want to display on the LEFT side of your drop-down
list - this value will not be saved, it is only used for
display during the selection process (for example: "Just
Another Company's Cryptic Acronym").
(6) Now - create a new text box.
(7) Move and Size this text box so that it is right beside
your listbox - on the same line.
(8) Right-Click on the text box you just created, and
click on the menu item "change binding".
(9) Move your cursor to the end of this line and then
subtract 1 from whatever number appears there. (For
example, if the value is "Field5", change it
to "Field4"). - - What we are trying to do is make the
binding on this box match the binding of the Drop-Down
List Box.
(10) If you did this right, then InfoPath will display a
blue icon in the corner of BOTH boxes to tell you that
they are storing duplicate data - this is what you want.
(11) Now preview the form and change the drop-down list
to "Just Another Company's Cryptic Acronym". Notice that
the box to the right now shows "JACCA".
(12) From the user's perspective, you now have the
beginnings of a combo listbox.

Does this help?




-----Original Message-----
My users want to use a Combo box instead of the regular
dropdown listbox, but I am unable to figure out how to add
that functionality.
Things I have tried
1) inserting a microsoft forms combo box 2.0 activex
control, but I can not figure out how to populate the list
from a secondary datasource
2) I tried adding the functionality to the listbox in
jscript like I would on a webpage, but can not figure out
how to access the actual listbox control on the from to
extend it.
The end result that I want is an auto complete box that
load its data from a secondary datasource displaying a
text and actualy inserting a related value.
 

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