Pass a parameter from Main Report to a Subreport

Apologies for these recent newbie questions, but I'm obviously not asking the search engines the correct questions.

I have a report I'm trying to reconstruct after upgrading from VS2008 to VS2010 introduced errors into an existing Crystal Report. So, I have a semi-working report I'm trying to duplicate.

I have a report containing some subreports. The Main Report has some parameters in queries within "Database Fields" and I need to pass those fields to a particular Subreport's "Parameter Fields" so that it can then reference those parameters in its own queries.

So, my question is: How do I create the association between the query result on the Main Report and the parameter on the Subreport?


For Crystal Reports for Visual Studio 2010 - That's the only one that works currently, isn't it?

When adding a sub-report [or changing the "Change Subreport Links" for an existing report] you can select the parameter on the subreport from the drop-down on the bottom left of the 'Links' tab (or Subreport Links dialog, if editing an existing subreport)

  • Once you've selected your field (or Parameter) on the left in the 'Available Fields:' list, click the > button to move it to the right and you'll see link options appear below. so this is the field from the main report you want to use as a parameter for you subreport

  • Underneath, on the right select the parameter (from you subreport) you wish to link it to. This is the parameter in your subreport that you want to use

does that make sense.

Maybe some images would help.

Need Your Help

Importing .rtf data into MatLab

matlab vector import rtf plaintext

I am working with huge rich text data files (.rtf). The data within the files consists of two columns of numbers formatted with table-like properties. Also, these numbers are either very large or v...

couldn't find file hibernate.cfg.xml

c# unit-testing nhibernate test-project

I want to run a test-porject (with the usage of NHibernate).

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.