Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

select the item of the second column

Status
Not open for further replies.

patweb

Programmer
Apr 17, 2003
174
0
0
BE
For my code I need the value from a combobox. This combobox is based on a table and consist out of two columns. The first column is the ID and the second is the name of the branch. When asking the value he give the ID. How to get the value of the second column ?

strBranch = Forms![F-01-FIRM]![BRANCH]
msgbox strBranch = 1
should be msgbox strBranch = "a branch name from the second column"

Certainly an easy one.

Thanks for your prompt answer. Pat
 
Try the following...

strBranch = Form_F-01-FIRM.BRANCH.column(1)

Let me know if it works.

-illini
 
Thats it, now I see it, if you don't us it frequently you forget it.

strBranch = Forms![F-01-FIRM]![BRANCH].Column(1)
strBRanch = "a name of a branche"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top