[英]Paramter is missing a value in SSRS
I'm calling a Detail report from the summary report and my summary report field is passed as a parameter to the detail report. 我正在从摘要报告中调用详细报告,并且我的摘要报告字段作为参数传递给详细报告。 However when clicking on certain rows based on one condition, the detail report opens correctly.
但是,当基于一种条件单击某些行时,详细报告将正确打开。 Certain rows shows the type parameter is missing.
某些行显示缺少类型参数。
I am passing the type value while invoking the reports and value is passed from the type field in the summary report 我在调用报告时传递了类型值,并且从摘要报告中的类型字段传递了值
Eg IF(@type=''A'')
EXEC AcceptedDetail
If (@type = ''R'')
EXEC AcceptedDetail
In this case R works fine while A does not. 在这种情况下,R可以正常工作,而A则不能。
Try 尝试
DECLARE @type CHAR(1) = 'R'
IF @type IN ('A','R')
BEGIN
EXEC AcceptedDetail
END
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.