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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grab data from unbound column of combo box

Status
Not open for further replies.

jlrrush

MIS
Aug 3, 2004
9
US
I have a combo box that contains id, first name, and last name, where id is the bound column. In a later form I want to populate a name field using the first and last name of the record selected in the combo box. I would like to use the setvalue function in a macro but can't figure out how to grab the data from the second column of my combo box.
 
I typically use AfterUpdate Event of Combo-box...

Private Sub LoanCommissCategoryID_AfterUpdate()
Me.CompPlanType.Value = Me.LoanCommissCategoryID.Column(1)
End Sub

Where LoanCommissCategoryID is a Combo Box with 4 fields. Note: in Combo-boxes, the first position is denoted with a zero (0). Therefore in my example, I am setting CompPlanType to the second column item in the combo-box. htwh,

Steve Medvid
"IT Consultant & Web Master"

Chester County, PA Residents
Please Show Your Support...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top