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.
Try
DECLARE @type CHAR(1) = 'R'
IF @type IN ('A','R')
BEGIN
EXEC AcceptedDetail
END
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.