We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
Private Sub WhereLikeString() 'If there is more than one item in the listbox, then need to create like strings for each item 'in the list box as a parameter to the sql statement Dim i As Integer Dim strWhere As String Dim varItem As Variant i = Me.lstMerchants.ListCount If i < 1 Then Exit Sub End If Dim strArray() As String ' Dim i As Integer For i = 0 To lstMerchants.ListCount - 1 ReDim Preserve strArray(i) strArray(i) = lstMerchants.ItemData(i) Debug.Print strArray(i) strWhere = strWhere & " Like '" & strArray(i) & "' OR " Debug.Print strWhere Next i Ebd Syb
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.