I have two combo boxes.
CBox1 is called "Produce" which has two options in the list: Fruits and Veggies
CBox2 is called "ProduceList" which displays either a list of Fruits or a list of Veggies depending on the selection in CBox1.
When Fruits is selected in CBox1 a list of Fruits is displayed in CBox2 and If Veggies is selected in CBox1 a list of Veggies is displayed in CBox2.
The code looks like this:
Dim Produce As String
Dim ProduceList As String
Dim FruitsList As String
Dim VeggiesList As String
If Me.Produce = "Fruits" Then
Me.ProduceList.RowSource = "FruitsList"
Else
Me.ProduceList.RowSource = "VeggiesList"
End If
The issue is the user selects Fruits or Veggies, the respective list appears in CBox2 but if user changes his/her mind and changes selection from Fruits to
Veggies or vice versa; the original selection continues to populate CBox2 till user clicks back in CBox2.
Is there a way to make the change appear in CBox2 as soon as change is made in CBox1?
Thanks for your help,.
mrkshpntf.
CBox1 is called "Produce" which has two options in the list: Fruits and Veggies
CBox2 is called "ProduceList" which displays either a list of Fruits or a list of Veggies depending on the selection in CBox1.
When Fruits is selected in CBox1 a list of Fruits is displayed in CBox2 and If Veggies is selected in CBox1 a list of Veggies is displayed in CBox2.
The code looks like this:
Dim Produce As String
Dim ProduceList As String
Dim FruitsList As String
Dim VeggiesList As String
If Me.Produce = "Fruits" Then
Me.ProduceList.RowSource = "FruitsList"
Else
Me.ProduceList.RowSource = "VeggiesList"
End If
The issue is the user selects Fruits or Veggies, the respective list appears in CBox2 but if user changes his/her mind and changes selection from Fruits to
Veggies or vice versa; the original selection continues to populate CBox2 till user clicks back in CBox2.
Is there a way to make the change appear in CBox2 as soon as change is made in CBox1?
Thanks for your help,.
mrkshpntf.