Collection of selected rows in list box

R

richardb

I'm really working with VB6, but cannot find that community. However, the
question should be the same for Access.

I seem to recall that the lines that have been selected in a list box form a
collection and that I can work my way through the selected items with the
"For each ... in ..." method. However, I am searching but cannot find the
methods or an example. Can someone help please.
Thank you.
 
J

John Vinson

I'm really working with VB6, but cannot find that community. However, the
question should be the same for Access.

microsoft.public.vb.controls might be worth a try.
I seem to recall that the lines that have been selected in a list box form a
collection and that I can work my way through the selected items with the
"For each ... in ..." method. However, I am searching but cannot find the
methods or an example. Can someone help please.
Thank you.

Visual Basic listboxes and Access listboxes are somewhat different, if
I recall aright, but try looking at the control's ItemsSelected
property.

John W. Vinson[MVP]
 
Top