Let's say that in the detail section of your report you are printing the value of interest (me.txtValue). And from you question I think you are looking for two controls in a grouping or summary section, let's call them me.txtValuePositve and me.txtValueNegative.
Place the following code in the OnPrint or OnFormat property of the detail section:
if me.txtValue >=0 then
' positive value calculation
me.txtValuePositive = nz(me.txtValuePositive) + nz(me.txtValue)
else
' calculation for negative value
me.txtValueNegative = nz(me.txtValueNegative) + nz(me.txtValue)
end if
The nz() function is used so that in case any control is null it will be handled as the value 0. Otherwise those calculations can fail.
Don't forget in the group header section to put the following code in OnPrint or OnFormat:
me.txtValuePositive = 0
me.txtValueNegative = 0
This should work properly if you put these sections of code in the OnPrint property of the appropriate section; however, sometimes it's necessary to use the OnFormat property instead (but never both). If you use the OnFormat property look out for double calculations that can occur sometimes because Access runs through the report twice during preparation.
Bob