B
Bel
I'm having trouble creating a combo box that limits its list based on the
selection made in another combo box when using a subform. When I run the
subform by it self the code below runs great. My values for the combo box2
are limited based on the selection made in the combo box1. The problem is
when I access the form containing the combo boxes as a subform in another
form. After I make my selection in combo box1, I'm prompt to enter the value
that is to be used to limit the list in combo box2. Once I manually type the
value, combo box2 list of values is based on what I type NOT the value
selected in combo box1. Being prompt to enter a value defeats the value of
basing the combo box2 on combo box1. It appears that the value select in
combo box1 is not retained.
AfterUpdate:
Me.cboBox2 = Null
Me.cboBox2.Requery
Me.cboBox2 = Me.cboBox2.ItemData(0)
selection made in another combo box when using a subform. When I run the
subform by it self the code below runs great. My values for the combo box2
are limited based on the selection made in the combo box1. The problem is
when I access the form containing the combo boxes as a subform in another
form. After I make my selection in combo box1, I'm prompt to enter the value
that is to be used to limit the list in combo box2. Once I manually type the
value, combo box2 list of values is based on what I type NOT the value
selected in combo box1. Being prompt to enter a value defeats the value of
basing the combo box2 on combo box1. It appears that the value select in
combo box1 is not retained.
AfterUpdate:
Me.cboBox2 = Null
Me.cboBox2.Requery
Me.cboBox2 = Me.cboBox2.ItemData(0)