Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The formuala in your subreport is missing a semi-colon:</p> <pre><code>WhilePrintingRecords; Shared CurrencyVar myTotal := Sum ({DataTableDrmonthlyData.Payable Amount}); </code></pre> <p>EDIT:</p> <p>After seeing the screenshot, I think your report structure is not very good. Please see the answer to this <a href="https://stackoverflow.com/questions/19531116/crystal-report-page-header-not-showing-in-every-page/19532837?noredirect=1#comment29018083_19532837">post</a> on how to structure a report. Another thing that is very important is the placement of your formulas, as well as the possibility of using a linked subreport. Please read this <a href="http://scn.sap.com/people/prabhat.kumar2/blog/2011/11/06/passing-values-between-reports-in-crystal-reports-2008" rel="nofollow noreferrer">post</a> for more information on how to pass values between reports and subreports. I would leave everything above the black lines in the Page Header. Create a Group 1 and put everything below the black line in that. Base the Group on Number of Patient. Now your subreport needs to "above" your Fee Total formula so that Fee Total can access the value. The syntax of the formula in the subreport should be </p> <pre><code>WhilePrintingRecords; Shared CurrencyVar myTotal := Sum ({DataTableDrmonthlyData.Payable Amount}); </code></pre> <p>Then in your main formula you can declare the variable like this </p> <pre><code>WhilePrintingRecords; Shared CurrencyVar myTotal := myTotal; </code></pre> <p>and use it in the rest of the formula. </p> <p>I think that your problem is the structure of your report.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload