Summing certain records

kilobyte

Registered User.
Local time
Today, 12:26
Joined
Oct 5, 2005
Messages
52
Is there a way to add criteria to the Sum() function? I would like to have two seperate totals in a section footer. Which total each record is calculated into should depend on a value in one of the fields. Does any one know a way to do that?
 
You may have to explain the details of the problem further. I, for one, am not sure what you mean.
 
=Sum(Iif([MyField]=6,[MyField],0))
 
Aha. That should do it. Thanks Rich.

ps. Sorry I didn't explain well.
 

Users who are viewing this thread

Back
Top Bottom