It shows only one by default but this is easy to change.
In the Properties of the combo box:
in Row Source, add in whichever other fields you want it to look up
in Column Count, increase this to however many you want to be shown
in Column Widths, adjust these as you wish
in List Width, similarly, set the width that you want
When you get off of the combo box, even with the multiple fields it
will ONLY show the bound column
However, you still have access to the other fields. You now have two
options:
If there are two other fields in that combo to show then
1) place two unbound txt boxes on the form and have the row source for
them be
=me.comboboxfieldname.column(1) for first additionalfield
AND
=me.comboboxfieldname.column(2) for second additional field
OR
2) in the oncurrent event of the form AND in the Afterupdate event of
the comboboxfieldname put
me.txtboxname1 = me.comboboxfieldname.column(1) ANd
me.txtboxname2 = me.comboboxfieldname.column(2)
Both of these examples assume that the query for the combobox have
bound column = 1 (really means first column in query)
and that the second and third columns are the two extra fields. (the
column part of the control is counted relative to 0.. first column is
column(0) second column is column(1) etc.
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.