Hi,
I have a query that I would like run by getting multiple values from a list box. I use a for loop to get the values and put them in a text box, which the query then refers to.
The problem is when I manually type the values from the text box into the query, the query runs fine but it won't run when its referring to the same values in the in the text box even though they are the same.
Any help is appreciated.
If CheckifRowisSelected = True Then
For intCurrentRow = 0 To Me.listbox.ListCount - 1
If lstTerm.Selected(intCurrentRow) = True Then 'Check if the row is selected
QueryValues= Me.listbox.Column(0, intCurrentRow) & " or "
End If
Next
If Len(QueryValues > 0 Then
Me.textbox = Left(QueryValues, Len(QueryValues) - 4)
End If
End If
Many thanks