kiranreddys.com
Kiran's personal website
Blog   Forums   Sitemap   Links   
 
 
 
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

'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

Category: Crystal Reports - General,

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 Me | Knowledge base | Forums | Blog | Site map | Site Search | Subscribe | Links | News

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

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