Lets say I have two tables, one for transactions, and another table who\'s primary key is the foreign key in the first table, and this relationship simply associates locatio
You can use
WHERE LocationID IN (" & listofvalues & ");"
The list can be obtained like so:
For Each itm In Me.ListBox.ItemsSelected listofvalues = listofvalues & "," & Me.ListBox.Column(0, itm) Next listofvalues = Mid(listofvalues,2)
This is for a numeric list, a list of strings needs quotes.