1st ParameterDataset:
SELECT DISTINCT Code, [Desc]
FROM TableName
UNION
SELECT 'NULL' AS Code, 'NULL' as [Desc]
2nd ParameterDataset:
SELECT EventCode
FROM TableName
UNION
SELECT 'NULL' AS EventCode
主数据集:
Select FieldName1, FieldName2, FieldName3......
From TableNames
Where (isnull(Dispo,'NULL') IN (@Code) )
AND (isnull(Special_Event_Code,'NULL') IN (@EventCode)
问题:我希望在两个参数上都使用Multi-Select,并且如果有任何NULL值,则要在两个参数中选择NULL。当我运行报告时,我能够从@EventCode获取NULL,但是当我从第一个参数中选择NULL而第二个参数中的NULL时,则不会显示任何内容。如果我从第一个参数中选择其他值而第二个参数报告中的NULL正在运行OK。任何帮助将不胜感激。谢谢!