SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


subreport's parameter is missing a value


subreport's parameter is missing a value

Author
Message
cafescott
cafescott
SSC Eights!
SSC Eights! (958 reputation)SSC Eights! (958 reputation)SSC Eights! (958 reputation)SSC Eights! (958 reputation)SSC Eights! (958 reputation)SSC Eights! (958 reputation)SSC Eights! (958 reputation)SSC Eights! (958 reputation)

Group: General Forum Members
Points: 958 Visits: 733
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,
doug.brown
doug.brown
UDP Broadcaster
UDP Broadcaster (1.4K reputation)UDP Broadcaster (1.4K reputation)UDP Broadcaster (1.4K reputation)UDP Broadcaster (1.4K reputation)UDP Broadcaster (1.4K reputation)UDP Broadcaster (1.4K reputation)UDP Broadcaster (1.4K reputation)UDP Broadcaster (1.4K reputation)

Group: General Forum Members
Points: 1443 Visits: 14723
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?
cafescott
cafescott
SSC Eights!
SSC Eights! (958 reputation)SSC Eights! (958 reputation)SSC Eights! (958 reputation)SSC Eights! (958 reputation)SSC Eights! (958 reputation)SSC Eights! (958 reputation)SSC Eights! (958 reputation)SSC Eights! (958 reputation)

Group: General Forum Members
Points: 958 Visits: 733
Hey Doug, putting the parameter in the main report did the trick. Thanks a lot for the reply!!
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search