I've got a report that I'd like to calculate a variable value and then pass that to a linked report's parameter. I know that I can use a report column value by passing the column number like this:
SELECT 'dbr.report','sp_DBR_linkedreport1','LinkedReport1','parameter=1';
Or use an initial sproc parameter like this (add the negative sign):
SELECT 'dbr.report','sp_DBR_linkedreport1','LinkedReport1','parameter=-1';
But I'd like to do something like this:
SELECT 'dbr.report','sp_DBR_linkedreport1','LinkedReport1','parameter=@myvariable';
By this doesn't work. Is there a way to accomplish this?
Thanks!