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

Combo box to fill in Subform 1

Status
Not open for further replies.

Steven547

Technical User
Sep 15, 2004
165
US
I have a combo box that is based on a table with two columns.
I have a subform, that when I click a command button, I would like it to populate the two fields on my subform, with the selected info from the Combo Box.

It works with the first column:
on click event: FieldA = me.combobox (not the exact naming, but you get the idea.)

How would I get it so that FieldB (located on subform), would equal the 2nd column in the combo box? Or is there another way to do this? I've tried having the form based off a query, etc..but haven't figure it out yet..

thanks.
 
This should work:
Code:
FieldB = me.combobox.column(1)

Regards,
Lisa
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top