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

Exporting

Status
Not open for further replies.

elf1

Technical User
Jun 6, 2001
43
US
I am exporting a report to an excel file, and two of the values within the report are accessed via a subreport. Only one of the subreport values is exported to excel. Anyone have an idea on how to resolve this issue?
 
We are using Crystal 8.5, and it has the most current service pack (3).
 
You might just return the subreport value to the main report using a shared variable, however 2 subreports seem to work ok here when exporting to Excel.

In the subreport create a shared variable:

whileprintingrecords;
shared numbervar MyValue:= {table.field}

Then after the subreport fires you can use the value in the main report by creating another formula:

whileprintingrecords;
shared numbervar MyValue

-k
 
Thanks for your help so far, this is what I have now as my formula and it is giving me an error:

shared numbervar Hours := Sum of PR_22PerpetChkHistoryHeader.TotalEarningsHours;
 
Then post the error.

The formula looks wrong to me, I think it would be more like:

shared numbervar Hours :=
Sum({PR_22PerpetChkHistoryHeader.TotalEarningsHours});

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top