Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Services / Reporting Services / March 2007

Tip: Looking for answers? Try searching our database.

passing multi-value parameter to subreport

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
roy@mgk.com - 20 Mar 2007 19:47 GMT
ok - i've googled this and have tried everything to no avail....

parent report has multi-value parameter:  part_code

this gets passed to subreport which has part_code setup as multi-
valued paramter

what is the syntax in the parent...subreport properties/parameters box

and

what is the syntax in the child report parameters form?

thanks very much
Amarnath - 21 Mar 2007 15:10 GMT
on the subreport properties->parameters give
"=Join(Parameters! <ParameterName> .Value,", ") so that the multi value is
passed to the subreport as well.

Amarnath, MCTS

> ok - i've googled this and have tried everything to no avail....
>
[quoted text clipped - 10 lines]
>
> thanks very much
roy@mgk.com - 22 Mar 2007 14:07 GMT
On Mar 21, 9:10 am, Amarnath <Amarn...@discussions.microsoft.com>
wrote:
> on the subreport properties->parameters give
> "=Join(Parameters! <ParameterName> .Value,", ") so that the multi value is
[quoted text clipped - 19 lines]
>
> - Show quoted text -

did that Amarnath ))....and i have in the parent  the subreport
properties/parameters:  "=Parameters!PART_CODE"

all i get is 'error - subreport could not be shown'........
roy@mgk.com - 22 Mar 2007 14:19 GMT
On Mar 22, 8:07 am, r...@mgk.com wrote:
> On Mar 21, 9:10 am, Amarnath <Amarn...@discussions.microsoft.com>
> wrote:
[quoted text clipped - 29 lines]
>
> - Show quoted text -

i should've said i implemented that....as well as the "=Parameters!
PART_CODE" in my previous reply...

is there some change in the SQL?...i'm just using the ".....part_code
in (@PART_CODE)" with the paramter setup normailly in the subreport's
report parameter properties.......
Amarnath - 23 Mar 2007 07:21 GMT
To be very clear, The problem is due to parameters only. First go to the
report which you include as "Subreport" in the main report. open the report
properties, check for multi-value.
close that remaining same. (ie string, non queried or queried, default null.)

Go to the main report where you have placed subreport. on the subreport
right click for properties and the parameter, this is the main culprit for
not working.

Parameter Name: select from the drop down.
Parameter Value: "=Parameters!cn.Value"  here just include value instead of
Value(0)

This should work. Let me know if it works.

Amarnath, MCTS.

> On Mar 22, 8:07 am, r...@mgk.com wrote:
> > On Mar 21, 9:10 am, Amarnath <Amarn...@discussions.microsoft.com>
[quoted text clipped - 37 lines]
> in (@PART_CODE)" with the paramter setup normailly in the subreport's
> report parameter properties.......
roy@mgk.com - 27 Mar 2007 18:53 GMT
On Mar 23, 1:21 am, Amarnath <Amarn...@discussions.microsoft.com>
wrote:
> To be very clear, The problem is due to parameters only. First go to the
> report which you include as "Subreport" in the main report. open the report
[quoted text clipped - 57 lines]
>
> - Show quoted text -

((

tried but not working...have logged incident with microsoft on this..
roy@mgk.com - 28 Mar 2007 21:22 GMT
On Mar 27, 12:53 pm, r...@mgk.com wrote:
> On Mar 23, 1:21 am, Amarnath <Amarn...@discussions.microsoft.com>
> wrote:
[quoted text clipped - 66 lines]
>
> - Show quoted text -

i've spoken to microsoft tech support - and they could not get it to
work....i'm assuming at this point we cannot reference a multi-value
paramenter in a subreport that rerferences it in the SQL statement
with the 'IN (@MYPARAM) manner...too bad...will have to figure out a
work-around.
Amarnath - 29 Mar 2007 07:24 GMT
I simulated your problem , it perfectly works for me..

Amarnath, MCTS.

> On Mar 27, 12:53 pm, r...@mgk.com wrote:
> > On Mar 23, 1:21 am, Amarnath <Amarn...@discussions.microsoft.com>
[quoted text clipped - 73 lines]
> with the 'IN (@MYPARAM) manner...too bad...will have to figure out a
> work-around.
roy@mgk.com - 29 Mar 2007 15:55 GMT
On Mar 29, 1:24 am, Amarnath <Amarn...@discussions.microsoft.com>
wrote:
> I simulated your problem , it perfectly works for me..
>
[quoted text clipped - 80 lines]
>
> - Show quoted text -

ok - this works when you have different names for the same parameter
in the parent and sub reports.........
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.