Home
Crystal Reports Training
Crystal Reports XI
Crystal Reports .NET
Crystal Reports Forum
News
Tech Support
Active Topics
Memberlist
Search
Help
Register
Login
Report Design
Crystal Reports Forum
:
Crystal Reports 9 through 2022
:
Report Design
Topic: calculate sum
Author
Message
veronika
Newbie
Joined: 07 Feb 2008
Location: Canada
Online Status: Offline
Posts: 2
Topic: calculate sum
Posted: 07 Feb 2008 at 7:05pm
I need to calculate sum in datetime group but not all records, only those records that one of the fields are = "55". I created formula:
DateTimeVar prevTime;
NumberVar Result;
If ({ado.RecordType}) = "55" then
Result:= Result + 1;
If ({ado.localT}) = prevTime then
Result:=0
else
Result:= Result;
prevTime = {ado.localT};
Result;
but its not calculate in time group. What I am doing wrong?
Thanks
IP Logged
krpmsit
Newbie
Joined: 06 Feb 2008
Online Status: Offline
Posts: 21
Posted: 08 Feb 2008 at 4:15am
I thing you have declared as a local variable.
Each time, it will set to "0" (zero).
Try as a global variable.
Regards
K. Rajapandian
IP Logged
veronika
Newbie
Joined: 07 Feb 2008
Location: Canada
Online Status: Offline
Posts: 2
Posted: 11 Feb 2008 at 4:44pm
yes, thanks, thats working!
IP Logged
Printable version
Forum Jump
-- Select Forum --
Announcements
Talk with the Author
Self-Publishing
Job Postings
New feature request
Report Design
Data Connectivity
Technical Questions
Tips and Tricks
Crystal Xcelsius
Report Design
Data Connectivity
Writing Code
Tips and Tricks
Report Design
Data Connectivity
Writing Code
Tips and Tricks
You
cannot
post new topics in this forum
You
cannot
reply to topics in this forum
You
cannot
delete your posts in this forum
You
cannot
edit your posts in this forum
You
cannot
create polls in this forum
You
cannot
vote in polls in this forum
HOME
|
FREE EBOOK
|
PROGRAMMING GUIDE
|
PURCHASE
|
REVIEWS
|
CONTACT ME
|
FAQ
|
LINKS
|
PRIVACY
|
CLICK PLAYS
|
KONACAD
© 2004-2026 Brian Bischof. All Rights Reserved.