The only way I can think of to do this is to build your SQL Query in stages.
Get the users selections into an array (paramArray), as you are doing.
Set a string variable (queryString) for your Query to "SELECT * FROM classes WHERE class-id = " + paramArray[0].ToString()
then loop through your array and for each entry (after the first) add
**
queryString = querystring + " OR class-id = " + paramArray[x].ToString()
If you are familiar with
StringBuilder
then use that instead of a
String
, if not then get it working first then study
StringBuilder
and convert your code to use it.
**Check the Access SQL syntax for this, as I am doing it off the top of my head.
Good luck! :)