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 / General 2 / June 2007

Tip: Looking for answers? Try searching our database.

fields in combo box

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tjhoward - 14 Jun 2007 15:35 GMT
I created a combo box in a form that shows records with 2 fields  but when I
choose the record, only 1 field is chosen to fill the box.   What am I
missing to choose the record and have both fields fill the box so when I
print it, all info is there?
Jerry Whittle - 14 Jun 2007 15:46 GMT
When doing a combo box dropdown, you can see multiple columns of data.
However you can only see one column after choosing a record as you've found
out. One solution is to put a second unbound text box on the form and use the
DLookup function to populate it based on the combo box choice.
Signature

Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.

> I created a combo box in a form that shows records with 2 fields  but when I
> choose the record, only 1 field is chosen to fill the box.   What am I
> missing to choose the record and have both fields fill the box so when I
> print it, all info is there?
Wayne-I-M - 14 Jun 2007 15:51 GMT
Hi

Your combo will display the 1st combo column with a width set greater than
0cm.  So if you have column widths of 0cm;0cm;1cm;4cm  the combo will display
the 1cm column after update.  To display another column create an unbound
text box and set the source as the column of the combo.  In the example I
gave if you wanted to display the 4cm column the source for the text box
would be
=[ComboName].column(3)

Don't forget the combo columns start from 0 (so the forth column is column
number 3)

Hope this helps

Signature

Wayne
Manchester, England.

> I created a combo box in a form that shows records with 2 fields  but when I
> choose the record, only 1 field is chosen to fill the box.   What am I
> missing to choose the record and have both fields fill the box so when I
> print it, all info is there?
 
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.