I have 2 list boxes where the first one selects a category and the next one selects a product. Once the selections are made i need to be able to click log bet and get this information into a table "logged bets". I am completly lost on this. Below is the code that links the list boxes.
Private Sub cboCategories_AfterUpdate()
Me.cboProducts.RowSource = "SELECT ProductName FROM" & _
" Products WHERE CategoryID = " & Me.cboCategories & _
" ORDER BY ProductName"
Me.cboProducts = Me.cboProducts.ItemData(0)
End Sub
Any help would be greatly appreciated
Private Sub cboCategories_AfterUpdate()
Me.cboProducts.RowSource = "SELECT ProductName FROM" & _
" Products WHERE CategoryID = " & Me.cboCategories & _
" ORDER BY ProductName"
Me.cboProducts = Me.cboProducts.ItemData(0)
End Sub
Any help would be greatly appreciated
Last edited: