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 / February 2008

Tip: Looking for answers? Try searching our database.

Combo box fill Text box

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
yiotaa - 08 Feb 2008 06:37 GMT
I have a combo box(officename) in a a form in which I select the office name
and I want that result to be shown in a text box. I did it but I get the id
of the office i select in the combo box (officename) and not the name.
Please help me!!
akphidelt - 08 Feb 2008 08:16 GMT
It's because when you create a combo box that uses a table or query as it's
row source it usually automatically adds the ID as the number associated with
the comboboxs pick.

So you can do multiple things to change this

1. Go in to the properties of the combobox, and go to "Bound Column" and
change it from 1 to 2.

Or if you go in to the event of the combo box you can change the

me.yourcombobox.column(2) instead of just me.yourcombobox

either one should work. Hope this helps.

> I have a combo box(officename) in a a form in which I select the office name
> and I want that result to be shown in a text box. I did it but I get the id
> of the office i select in the combo box (officename) and not the name.
> Please help me!!
 
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.