Multi Value list box selects all customer

A

Alan

I have this code as a multiValue listbox but everytime i select which
customer i want it select them all, can anyone tell me how i can fix's this

thanks

Dim varitem As Variant
Dim strTempItem As String

For Each varitem In Me.lstReportFilter.ItemsSelected
strTempItem = strTempItem & " [SalesGroupingField]=" &
Me.lstReportFilter.ItemData(varitem) & " Or "
Next

strTempItem = "(" & Left(strTempItem, Len(strTempItem) - 4) & ")"
 
W

Wayne-I-M

Have you set the MultiSelect to Simple on the list's property box (it's in
the Other colum) ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top