I have 3 different drop down options. If I select one option at a time it works, but on selecting more than one it will throw an error. The three labels refer to three different versions. Everything works but when I select more than one option in the drop down it crashes. Need help understanding it why
The three parameters are Select all: Report1 Report2 Report3
Here my query:
SELECT
ServerInfo.Version,
ServerInfo.Type,
ProjInfo.ProjName,
ServerInfo.ServName
FROM
ProjInfo, ServerInfo
WHERE ServerInfo.Version LIKE('%'+@ServerReport+'%')
Incorrect syntax near ','.
Query execution failed for dataset 'Report'. (rsErrorExecutingCommand)
An error has occurred during report processing. (rsProcessingAborted)