I take it your SQL statement is something like SELCT 'your values' FROM 'Your Table' WHERE 'Field' = @code.
If this is the case, try changing the WHERE to WHERE 'Field' IN (@Code).
The IN clause takes comma separated values and returns all matching entries.