storing selected items from listbox for sql where statement


PHOTO EMBED

Wed Apr 01 2020 07:15:27 GMT+0000 (UTC)

Saved by @DayAnn #sql

dim tempo = listbox1.SelectedItems
dim students as string = ""
for each selected in tempo
students = selected.ToString & "," & students
next
content_copyCOPY

Now that will give you a variable students which have stored a comma separated list of the selected items as one large string.

https://stackoverflow.com/questions/60963585/storing-selected-items-from-listbox-for-sql-where-statement