Writing Code
 Crystal Reports Forum : Crystal Reports .NET 2003 : Writing Code
Message Icon Topic: Variable Help Post Reply Post New Topic
Author Message
Ricci
Newbie
Newbie
Avatar

Joined: 09 Jul 2012
Location: United States
Online Status: Offline
Posts: 8
Quote Ricci Replybullet Topic: Variable Help
    Posted: 09 Jul 2012 at 4:34am
I am having trouble passing a variable from my sub report back into the main report.
 
Main Report is a Change Order
  * Group 1 = Project Number
  * Group 2 = Contract Number & Change Order Number
 
The Sub Report is a different Budget Breakdown of the Change Order amounts
  (1) I have tried using Running Totals to assign the variables. This works if I only want to view the variable but not when I need to use it for a calculations in the main report
     Sub Report
      WhilePrintingRecords;
      If GroupName ({Contracts_10_ttx.Budget~Group5}) = '01'
          Then CurrencyVar OriginalMain := {#Originals};
 
     Main Report
      WhilePrintingRecords;
      shared currencyvar OriginalMain;
      OriginalMain
 
  (2) I have tried calculating the variable on each record. This also works for viewing only but not when I need to use it in calculations in the main report
 
  (3) I have tried putting the sub report in Group 1 header, Group 2 header and Group 2 footer in a higher section than where I need to use the variables, none works for calculations
 
I don't know what else to try. Can anyone help?
 
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 10 Jul 2012 at 7:15am
Please do not cross-post.  See my response on your other post.
 
-Dell
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.063 seconds.