Hi All,
I have the following piece of code. Can someone tell me what it is doing in words?
For Each varItem In Me.lstInvestigation.ItemsSelected
strInvestigation = strInvestigation & ",'" & Me.lstInvestigation.ItemData(varItem) _
& "'"
Next varItem
If Len(strInvestigation) = 0 Then
strInvestigation = "Like '*'"
Else
strInvestigation = Right(strInvestigation, Len(strInvestigation) - 1)
strInvestigation = "IN(" & strInvestigation & ")"
End If
thanks in advance,
Maribel
I have the following piece of code. Can someone tell me what it is doing in words?
For Each varItem In Me.lstInvestigation.ItemsSelected
strInvestigation = strInvestigation & ",'" & Me.lstInvestigation.ItemData(varItem) _
& "'"
Next varItem
If Len(strInvestigation) = 0 Then
strInvestigation = "Like '*'"
Else
strInvestigation = Right(strInvestigation, Len(strInvestigation) - 1)
strInvestigation = "IN(" & strInvestigation & ")"
End If
thanks in advance,
Maribel