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

Adding Multiple fields

Status
Not open for further replies.
Joined
Jul 1, 2002
Messages
21
Location
GB
I am looking to add multiple fields together for a total.

The table they are in looks like this;

Table Name : Volumes
ID
Date
Volume1
Volume2
Volume3
Volume4 up to Volume 96 (all the 15 minute intervals of the day)

How do I quickly sum up all the Volume items of data?

In VBA I know how I would do it, looping through them Volume + X.

How do you do it in Crystal?

Nick
 
Unfortunately I don't think that they have a macro substitution in Crystal to build variables.

If possible, build a Stored Procedure or View to perform this.

The only means I know of is to create a formula that contains something like:

{Volume1}+{Volume2}+{Volume3}...etc.

Then you can create summaries of that formula for any subtotals and grandtotals.

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

Part and Inventory Search

Sponsor

Back
Top