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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

The summary/running total field could not be created

Status
Not open for further replies.

Hillary

Programmer
Feb 15, 2002
377
US
Does anyone know why Crystal won't sum this?

Shared NumberVar RunTime:= {OPERATION.RUN};
Shared StringVar RunType:= {OPERATION.RUN_TYPE};
Shared NumberVar Quantity:= {WORK_ORDER.DESIRED_QTY};

If RunType like "MIN/PC" then Sum((RunTime*Quantity)/60)

Thanks for your help.

Hillary
 
You're using shared variables, which implies that these values are being passed from a subreport, which may be part of your problem.

I'll assume that you don't need shared variables, and that you just want to sum a formula, so create a formula with:

if {OPERATION.RUN_TYPE} = "MIN/PC" then
{OPERATION.RUN*{WORK_ORDER.DESIRED_QTY}}/60
else
0

Now you can place this formula in the details and right click->Insert-Sum, etc. to insert sums at group or report levels.

If you are needing the shared variables to be summed, you'll probably have to create a formula to sum them up for you.

-k

kai@informeddatadecisions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top