September 8, 2011 at 9:28 am
Hi I am trying to get chosen record value and put it in parameter.
Can anyone know how to do it?
Thanks
Ally
September 8, 2011 at 9:34 am
Sorry, don't understand your question, you're going to have to explain in more detail what you're trying to do.
September 8, 2011 at 9:48 am
Google output parameters
September 8, 2011 at 9:48 am
What do you mean by current record?
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
September 8, 2011 at 9:55 am
Hi,
Please see the attachment . When I choose one of the Report Name, I'd like to put chosen report name into parameter and pass parameter value to the subreport.
Thanks
Ally
September 8, 2011 at 9:59 am
Right click on your subreport object, properties, parameters.
September 8, 2011 at 10:00 am
I would guess you're talking about Reporting Services, Yes?
And you want to be able to click on one of the rows in your report which then opens the appropriate report?
September 8, 2011 at 10:01 am
DECLARE @Param1 varchar(50)
SET @Param1 = (SELECT ReportName from #MyTable WHERE This = That)
EXEC MyStoredProc @Param1
?
______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience
September 8, 2011 at 10:06 am
Sorry I should have put chosen instead of current.
September 8, 2011 at 10:08 am
ally.john2 (9/8/2011)
Sorry I should have put chosen instead of current.
Go to the properties of any textbox you want to become a link.
Then action, hit ... to get the popup.
From there on out you can open a url or another subreport.
You can set the parameters there.
Then I usually change the color to Blue, bold and underline so it looks like a link.
September 8, 2011 at 10:12 am
How can I get chosen Report Name value into ReportName1 parameter ?(Please see second attachment)
Thanks
Ally
September 8, 2011 at 10:17 am
ally.john2 (9/8/2011)
How can I get chosen Report Name value into ReportName1 parameter ?(Please see second attachment)Thanks
Ally
Please stop editing the original post, it justs makes it hard to understand the thread.
September 8, 2011 at 10:20 am
Pleasee the attacment called Calling_subReport.
The problem here I can not get ReportName1 parameter is null.
How can I get chosen report name into ReportName1 parameter?
Thanks
Ally
September 8, 2011 at 10:28 am
It woks
Thanks Mohammed.
Really appreciate it!
September 8, 2011 at 10:28 am
Never tried that.
Have you tested and IIF? You could control the value there and it should be possible to make it work.
Viewing 15 posts - 1 through 14 (of 14 total)
You must be logged in to reply to this topic. Login to reply