CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2004
    Posts
    3

    WhilePrintingRecords calculations

    I am using Crystal Version 9.0. I am in need of performing some calculations on some data. I cannot use the Running Total feature as I need ot make other additional calculations. I am instead using the 3 formulas with the WhilePrintingRecords and counting.

    I have 2 variables to use. When I get to the footer section, I am trying to do some final calculations on the data to be displayed. I have the following below that I am trying to use. Because of the division, I need to be sure that I compensate for the 0 value. That is why I have the If...Then statement.

    Regards

    WhilePrintingRecords;
    If
    CurrencyVar Amount <> 0
    then
    ((CurrencyVar Amount) - (CurrencyVar PastAmt))/(CurrencyVar Amount * 100)

  2. #2
    Join Date
    May 2003
    Posts
    163
    What's your problem?

    And didn't declare the variables?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured