Click here to Skip to main content
15,891,621 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello friends i have developed a crystal report with a sub report in it.
i want to pass parameters to the sub report by using vb syntax.
i am able to pass the parameter to main report but dont know how to use it for subreports.
can anyone tell me syntax in vb to pass parameters to sub report
please needed help.
Posted

Hi There

Thanks for your posting. Is Sequence is also a field inside your main dataset? if that is the case then you just need to map your sub report parameter @Sequence with your Sequence field of the main dataset

For more information please have a look

http://www.katieandemil.com/ssrs-create-subreport-with-parameter-example-tutorial-ssrs-2008-r2

http://msdn.microsoft.com/en-us/library/ms160348(v=sql.100).aspx

If you have any question please let me know.

Many Thanks

Aatif

Please click "Mark as Answer" if this resolves your problem or "Vote as Helpful" if you find it helpful.
 
Share this answer
 
-> Just Right Click on the Subreport and Choose "Change Subreport Links"

-> Select Your Parameter From "Available Fields"

-> Click ">"

-> Now Your Parameter is Added to Your Subreport.

-> If You wish to Select Subreport Data based on the value of Parameter :

-Check "Select data on the Subreport based on:"

-Choose the field based on Which You want to Filter Subreport Data.

-Hit OK.

Remember to Put Your Subreport in Header/Footer (If possible) to avoid repeatation.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900