Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / November 2007

Tip: Looking for answers? Try searching our database.

Combo Box Column Not Being Displayed

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JamesJ - 18 Nov 2007 11:59 GMT
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
Allen Browne - 18 Nov 2007 12:35 GMT
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

Signature

Allen Browne - Microsoft MVP.  Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

> 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,
[quoted text clipped - 4 lines]
> Thanks,
> James
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.