Quantcast
Channel: Sage 100
Viewing all articles
Browse latest Browse all 36993

Forum Post: Trying to pull value from subreport to main report in crystal reports XI

$
0
0
On the main report the only table is JC3 which is pulling details such as job no, cost code, cost type, trans date and trans amount. Then I have a subreport only pulling JC2 table and pulling cost code, cost type and revised estimate to pull the estimate. My links for subreport is job no, cost code and cost type.  I am trying to pull the revised estimate to the main report to then be able to get a percent of trans amount from JC3 on main report divided by the estimate from subreport.  On subreport I created formula  WhilePrintingRecords; Shared CurrencyVar myTotal :={JC2_JobCostDetail.RevisedEstimatedCost} and on Main report I created the below formula and put in on the details line of main report WhilePrintingRecords; Shared CurrencyVar myTotal; myTotal My issue is that since it is supposed to repeat the value of the formula on each of the details it is putting zero on first detail then pulling correct on second detail and then it pulls the same amount on the next cost code/next group. For example cost code 100010001 cost code type S has two detail records and revised estimate is 2000, but on first line it is showing 0 for my formula (which it should be 2000) but for the second detail line of same cost code it is pulling 2000 which is correct, then next cost code is 100030000 with cost type of M  has 2 details records and revised estimate should be 0 but he first record for that cost code is showing 2000 (from the cost code above) and then the second record the formula is showing 0 which is correct. Any help is greatly appreciated!

Viewing all articles
Browse latest Browse all 36993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>