subreport's parameter is missing a value

  • I've been researching this for hours and so far I can't find the answer! :w00t:

    I am modifying a sub report of an existing report in Visual Studio 2005. I added a report parameter for the sub report. There is already a report parameter in place. It corresponds with an ID field that is used to populate data with the other datasets. The user fills this ID in, the data sets populate and the report should generate.

    The second parameter I have added has these properties:

    1. Hidden

    2. Allow blank value

    3. Available values: from query. I specified the value and label.

    4. Default values: Null

    Whenever I try to preview the report I have the error message: "The <my parameter> is missing a value." The report never shows any data. For the life of my I can't figure out what is causing this error message. I sure wish I had some clue what it is missing. Does anyone have an idea how to resolve this?

    Thanks,

  • I think you have to define parameters for subreports in three places:

    1. In the subreport itself

    2. In the main report

    3. Right-click on the cell in the main report containing the sub-report. Go to properties-> parameters and define the parameter there.

    If the third one isn't configured, the main report might not know to pass the parameter to the subreport. Is the parameter set up in all three places?

  • Hey Doug, putting the parameter in the main report did the trick. Thanks a lot for the reply!!

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply