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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pulling data from one crystal report to put in another report...

Status
Not open for further replies.

rschlee

Programmer
Oct 16, 2001
3
US
Is there any way to pull data from a crystal report into another crystal report? I have a left outer join but need to put a select criteria on one of the fields in the right table of that join. Does anyone have any ideas for me? Thanks!
 
If you can make one report the main report, and the other a sub report of this, you can pass the values around by using Shared variables.

In a formula in the main report, declare a variable thus (Basic syntax):

Shared MyVar as Number (or whatever)

and then set MyVar to the value you want to pass to the sub report. Then, in a formula in the sub report, declare the variable in exactly the same way (same name and data type) and the value will be passed.

Also, search in this forum on "Shared" - that's how I learnt to do this.

Bill.
 
Remember to place your subreport so it prints before the data you want (use: "add section below") in your mainreport. If your data is incorrect, use the "evaluate after ()" option in the formula editor.

Rune Flaathen
SNT-Norway
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top