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

Crystal Report 8.5 - Sub Rpt to Main Rpt

Status
Not open for further replies.

AITF

Technical User
Mar 26, 2008
4
US
I am attempting to write a rpt that passes values derived from a formula in the sub to the main rpt. I'm having difficulty writing the if-then-else statement. The report is based upon a history table where I am extracting values from change points during the history. My calculation must reference the same record throughout each report in order for the calculation to work.

Example: do [rpt2.DaysOldformula - rpt1.DaysOldformula] if rpt2.crdat = rpt1.crdat

Any suggestions? Maybe if-then-else is not the right direction. HELP!!!
 
For Crystal syntax,

if rpt2.crdat = rpt1.crdat then
rpt2.DaysOldformula - rpt1.DaysOldformula

 
You'll do better asking this question in one of the Crystal forums. This one still seems to be focused on the BO products.

Steve Krandel
Intuit
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top