title: Passing a parameter to the Subreport and Displayin it only if Parameter is passed in SSRS 2008
body: <p>I am trying to work on a report which has yearly records of employees. I have a created a table and a chart based on this.
  Now I want to create a subreport which would display monthly records for the YEAR in the main report.
  The report runs perfect when I drillthrough, but have to use subreport in order to achieve this.
  So basically The main report has</p>
  <h1>Parameter: Employee</h1>
  <p>The second report has:</p>
  <h1>Parameter: Employee and Year</h1>
  <p>The SubReport should not show up if Year on the Main table is not clicked.
  Can you please tell me how this is done.</p>
  <p>Update:</p>
  <p>I tried creating the subreport , but the it takes the top most year and displays the subreport and when I click on other &quot;Years&quot; it gives me an error.(Takes me to another page)</p>