Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

subreport's parameter is missing a value Expand / Collapse
Author
Message
Posted Wednesday, April 2, 2014 1:35 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Today @ 9:23 AM
Points: 156, Visits: 678
I've been researching this for hours and so far I can't find the answer!

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,
Post #1557672
Posted Thursday, April 3, 2014 12:01 PM This worked for the OP Answer marked as solution
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Today @ 4:33 PM
Points: 179, Visits: 7,365
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?
Post #1558143
Posted Friday, April 4, 2014 12:32 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Today @ 9:23 AM
Points: 156, Visits: 678
Hey Doug, putting the parameter in the main report did the trick. Thanks a lot for the reply!!

Post #1558617
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse