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!

Synchronized combo boxes & populated text box

Status
Not open for further replies.

bruno1

Technical User
Dec 10, 2005
8
ES
I have 2 synchronized combo boxes named group & Title. The synchronize works perfectly using
Private Sub group_AfterUpdate()
Me.Title.RowSource = "SELECT TitleName FROM" & _
" Title WHERE GroupID = " & Me.group & _
" ORDER BY TitleName"
Me.Title = Me.Title.ItemData(0)
End Sub
I want to populate a text box named price from the choice in the 2nd combo.I´ve tried
Title AfterUpdate()
Me.Price = Me.Title(2)
but I cannot seem to get itto work.Can anybody help please?
 
How are ya bruno1 . . .

Your setting the rowsource of Title to the single field [blue]TitleName[/blue], which is a [purple]string![/purple] Surely your not expecting to get a price here?

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top