No of items selected in list box

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi,

Please consider the following extract of code.

For Each vItm In Me!lb_FY.ItemsSelected
x = Count(Me!lb_FY.ItemsSelected)
stWhat = stWhat & Me!lb_FY.ItemData(vItm)
stWhat = stWhat & stCriteria
Next vItm

In line 2 I'm trying to count how many items are selected. What is the
correct statement as this doesn't work?

Andrew
280308
--
Andrew
.



Relevant Pages

  • Re: No of items selected in list box
    ... Please consider the following extract of code. ... For Each vItm In Me!lb_FY.ItemsSelected ... stWhat = stWhat & Me!lb_FY.ItemData ... Rick Brandt, Microsoft Access MVP ...
    (microsoft.public.access.formscoding)
  • Re: No of items selected in list box
    ... Please consider the following extract of code. ... For Each vItm In Me!lb_FY.ItemsSelected ... stWhat = stWhat & Me!lb_FY.ItemData ... stWhat = stWhat & stCriteria ...
    (microsoft.public.access.formscoding)