N
Newbie
Hi,
I have a combobox (value list) that is populated using the additem method
when it gets the focus (contents are dependant on selection in another
combobox)
At the moment the list just gets bigger so I need to be able to remove all
entries from this combobox before it gets populated again.
I have the following code - but it is not quite right
If Me.cbxSubcon.ListCount > 0 Then
llist = Me.cbxSubcon.ListCount - 1
For lindex = 0 To llist
Me.cbxSubcon.RemoveItem (lindex)
Next
End If
I am not even sure if I should be using For....Next - how do I move between
items in a combobox?
I have a combobox (value list) that is populated using the additem method
when it gets the focus (contents are dependant on selection in another
combobox)
At the moment the list just gets bigger so I need to be able to remove all
entries from this combobox before it gets populated again.
I have the following code - but it is not quite right
If Me.cbxSubcon.ListCount > 0 Then
llist = Me.cbxSubcon.ListCount - 1
For lindex = 0 To llist
Me.cbxSubcon.RemoveItem (lindex)
Next
End If
I am not even sure if I should be using For....Next - how do I move between
items in a combobox?