Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

main report parameter subreport

Status
Not open for further replies.

SundancerKid

Programmer
Oct 13, 2002
116
US
I know I can create a blank main report and add my detail to a subreport and pass the CurrentCEUserName from the Main Blank Report to the subreport and this will prevent the subreport from prompting a parameter that is referenced in a stored procedure.

I would like to know is there anyways to backwards reference?

ie.. all of the data is located in the main report and subreport passes the CurrentCEUserName to the main report parameter..

The reason I need to do this is because I have several reports that have subreports in them and I can not add a blank main report because you can not have a subreport call another subreport.

I saw something similar but it is not the same
 
You can pass details back from a subreport using Shared Variables. But it will only be usable in the next section down.

What you can do is pass a value up from one subreport and down to another. Does that help?

Do a SEARCH here if you need details of how to use Shared Variables.

It helps to give your Crystal version - 8, 8.5, 9, 10, 11 or whatever. Methods sometimes change between versions, and higher versions have extra options. In this case, it probably makes no difference.


[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
I know how to use shared values.

How can I get the CurrentCEUserName passed from a subreport to the main report and have it populate a UserName parameter on the main report?

We are on Crystal Reports XI R2 SP4.8
 
As far as I know, you can't.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top