By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,456 Members | 1,250 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,456 IT Pros & Developers. It's quick & easy.

Two field values displayed in Combo text area after selecting a lookup item

P: 1
I would like to display two field values in a combo after selecting from the list items...
i.e. my drop-down shows two fields from a lookup, but when I select the item, only the first field value is shown in the combo text area (at the top)...

(bound field is invisible)

e.g. Currently seeing (standard behavior)
[ drop-down ]
drop-down | 1
drop-down | 2
drop-down | 3
drop-down | 4

I am shooting for...
[ drop-down | 3 ]
drop-down | 1
drop-down | 2
drop-down | 3
drop-down | 4


Is there a way I can get both fields to display ??

thanks
Nov 13 '08 #1
Share this Question
Share on Google+
1 Reply


Expert Mod 2.5K+
P: 2,545
Hi. The combo on its own cannot display two values after selection. It is really a single textbox display combined with a drop-down list for selection purposes. You can place an unbound textbox beside your combo to display the value from the next column. To show the value from the third column of our combo (assuming the first column is hidden and the second displayed at present) set the unbound textbox's rowsource property to

=[name of your combo].Column(2)

Columns are numbered from 0 left to right (0 = leftmost) and their values are available using the Column property even if the corresponding selection list column is hidden (i.e. the width of that column is set to 0 in the combo's properties).

To ensure that users can't tab into the unbound textbox or try to edit it in any way set its enabled property to No and locked to Yes.

-Stewart
Nov 13 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.