Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculating field 1

Status
Not open for further replies.

roswelltx

Technical User
Aug 31, 2005
21
US
Hi, I was wondering if someone could give this newbie to Crystal some direction. I have a field that either a 0,1,2,or a 3. What I need to do is count all of them that are 0. The following is the formula I am using, this formula works but when you enter new dates ranges to search on it keeps incrementing instead of starting over at zero. How can i reset it so every time the records are searched it starts back at zero? Please help...

numbervar nRemoteNumber;
WhilereadingRecords;
global numbervar nCalculatedRemote;
if {T103.C536871197} = 0 then
nCalculatedRemote:= nCalculatedRemote + 1


thanks rroswelltx
 
This is a 2 step process. First write a formula:
If {YourField} = 0 then 1

Then insert a summary on this field.

Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports
 
Thanks for your reply, forgive me for my lack of programming knowledge, but what do you mean insert a summary on the field?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top