I have a form order details with three combo boxes; cbocategoryselect, cboproductselect and cboitemselect. I want to synchronize these so that product is dependant on the choice of category and item is dependant on the choice of product. The code I have is
Private Sub cbocategoryselect_AfterUpdate()
Me.cboproductselect.Requery
Me.cboproductselect.SetFocus
End Sub
Private Sub cboProductSelect_AfterUpdate()
Me.cboItemselect.Requery
Me.cboItemselect.SetFocus
End Sub
This seems to work standing alone but when I try to put it as a sub form inside an order form. I keep getting asked for the parameter value of each combo box. Can anyone help please?
Private Sub cbocategoryselect_AfterUpdate()
Me.cboproductselect.Requery
Me.cboproductselect.SetFocus
End Sub
Private Sub cboProductSelect_AfterUpdate()
Me.cboItemselect.Requery
Me.cboItemselect.SetFocus
End Sub
This seems to work standing alone but when I try to put it as a sub form inside an order form. I keep getting asked for the parameter value of each combo box. Can anyone help please?