Do you mean Sum the negative numbers? Or sum the negative numbers with the positive? Or sum the negative numbers AS positive numbers along with the positive, etc?
I am assuming this is on a report.
Put a text box on the group footer, or footer of the report, and then just type in =Sum([Deviation]) to get that sum.
If you want the negatives as positive, and the positive, you can do: =Sum(Abs([Deviation]))
You can also put the text box on the footer or header (group or report) and put code on the On Format event for that section to create your equation and put the result in the text box, etc.
Did any of that help?
__________________
mmcdonal
Look it up at: http://wrox.books24x7.com
|