hi y'all -
I have a report control whose control source is:
=IIf([srptInventoryUsage(b)].[Report].[HasData]=-1,[srptInventoryUsage(b)].[Report]![SumOfUnitPrice],0)
because I needed it to return a value even if empty. Now, in the group footer I need to SUM this control...and I tried:
=SUM(IIf([srptInventoryUsage(b)].[Report].[HasData]=-1,[srptInventoryUsage(b)].[Report]![SumOfUnitPrice],0))
which ends up asking me for a value. and I tried:
=IIf(Sum([srptInventoryUsage(b)].[Report].[HasData]=-1,[srptInventoryUsage(b)].[Report]![SumOfUnitPrice],0))
Which says it has the wrong number of arguments. Can someone tell me how to do this??
p.s. - I also tried changing the runningsum property to Over Group, but it accumulated totals through groups instead of restarting on each new group.....
Thank you!
Jennifer
[This message has been edited by JCross (edited 04-08-2002).]
[This message has been edited by JCross (edited 04-08-2002).]
I have a report control whose control source is:
=IIf([srptInventoryUsage(b)].[Report].[HasData]=-1,[srptInventoryUsage(b)].[Report]![SumOfUnitPrice],0)
because I needed it to return a value even if empty. Now, in the group footer I need to SUM this control...and I tried:
=SUM(IIf([srptInventoryUsage(b)].[Report].[HasData]=-1,[srptInventoryUsage(b)].[Report]![SumOfUnitPrice],0))
which ends up asking me for a value. and I tried:
=IIf(Sum([srptInventoryUsage(b)].[Report].[HasData]=-1,[srptInventoryUsage(b)].[Report]![SumOfUnitPrice],0))
Which says it has the wrong number of arguments. Can someone tell me how to do this??
p.s. - I also tried changing the runningsum property to Over Group, but it accumulated totals through groups instead of restarting on each new group.....
Thank you!
Jennifer
[This message has been edited by JCross (edited 04-08-2002).]
[This message has been edited by JCross (edited 04-08-2002).]