Combo Box Column Not Being Displayed

J

JamesJ

In an Access 2007 form I have a combo box based on a table with 2 fields.
Although I have the Column Count set to 2 and column width for both,
only the bound column displays when the cbo is closed. Only when I
open the cbo does the other column display.
Is this by design?

Thanks,
James
 
A

Allen Browne

Yes: the combo is designed to show only one column when not dropped down.

One alternative is to place a text box alongside the combo, and set its
Control Source to:
=[Combo1].Column(1)
The first column is zero, so Column(1) shows the 2nd column of Combo1.

Another alternative is to concatenate the values from 2 fields together.
This example shows the Surname and FirstName without dropping the combo
down:
RowSource:
SELECT ClientID, Surname & ", " + FirstName AS ClientName
FROM tblClient
ORDER BY Surname, FirstName;
Column Count 2
Column Widths 0
 

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