Kaporch
asked on
SSRS Subreport Not Showing
I have two reports, one the Company for DC report is the parent. The Gift Expenses for DC report is the subreport. I'm just passing 1 parameter between the reports: SpendDateCalendarYear. I'm getting an error stating that the subreport can not be shown. I'm passing in the subreport parameter as follows: =First(Fields!ParameterVal ue.Value, "SpendDateCalendarYear"). On the subreport, the parameter name is also named SpendDateCalendarYear, it is hidden and has no available values, and I have a default of 2008. I'm not sure what I'm doing wrong, why the subreport won't appear. I can email the reports to somebody who wants to help.
ASKER
Update:
The first subreport is showing ok using =Parameters!SpendDateCalen darYear.Va lue as the value being passed in, but the 2nd report using the same parameter value is giving the report can not be displayed error. Also, the 3rd report with no parameters being passed in does not display either.
The first subreport is showing ok using =Parameters!SpendDateCalen
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
https://www.experts-exchange.com/help.jsp check it for how to close and get points
Kaporch, so are header and footers in child reports necessary or to be avoided, or is there a way to use them? I don't have any in my child report and yet still get "Error: Subreport could not be shown", even tho i've checked and rechecked the params i pass.
I was not successful doing this: "when I hardcode the parameter I'm passing in the parent report as '2008', the subreport appears correctly." But if i set a default in the child report for the report param, the child on it's own appears fine according to that param value.
So what's the deal with headers and footers, can you describe briefly?
I was not successful doing this: "when I hardcode the parameter I'm passing in the parent report as '2008', the subreport appears correctly." But if i set a default in the child report for the report param, the child on it's own appears fine according to that param value.
So what's the deal with headers and footers, can you describe briefly?
ASKER