kiranreddys.com
Kiran's personal website
Blog    Forums   Sitemap   Social    Phone
 
     

 
Knowledgebase
 
Home
Knowledge base home, and site home.
Categories
List of all Knowledge base categories.
Glossary
An alphabetical list of technical terms.
Contact Me
Contact me for knowledge base questions
My Blog
My articles, white papers, ideas and thoughts.
 

 
 


Manual conditional calculations in Crystal Reports

Date Added January 1, 1970 | Print | Bookmark
'Code by Kiran Reddy
'Manual conditional calculations in Crystal Reports
'Ruining totals are very easy but some times you may need to calculate results manually.
'Create three formulas called form1, form2 and form3
'Keep form1 on report header, form2 on your section and form3 on report footer
'Add following code to your formulas


'Form1
WhilePrintingRecords;
numberVar gtotbasedon:= 0;

'Form2
WhilePrintingRecords;
numberVar gtotbasedon;
if {YOUR.FIELD}= YOUR_CONDITION then
gtotbasedon := gtotbasedon + {YOUR.FIELD}
else
gtotbasedon := gtotbasedon;

'Form3
WhilePrintingRecords;
numberVar gtotbasedon;
gtotbasedon := gtotbasedon

Was this article helpful?

Yes No

Category: Crystal Reports - General

Last updated on January 1, 1970 with 4436 views

0 User Comments

There are no comments yet...Kick things off by filling out the form below.

Leave a Comment

CAPTCHA Image
Security code

 



Home | About Me | Products | Support | Contact | Knowledgebase | Forums | Blog | Site map | Site Search | Subscribe | Links | Social | News

Travel | Guest Book | All Pages | History | Site Calendar | Recipes | Ex-Rates | UK Stuff | Downloads | Telugu Stuff | Tell a Friend | Feedback

Bookmark and Share
www.kiranreddys.com
Terms of Use
Site contents Copyright © 2008-2009 Kiran Reddy. All rights reserved.