BradCustom
IS-IT--Management
Below is a formula I'm woring with in Crystal XI. the value is passed from the subreport to the main report. Unfortunately the test for Null values doesn't work because I keep getting an error saying "there needs to be a field here" on the sum function.
Thanks for help on this formula!!
Code:
whileprintingrecords;
shared numbervar Allocated := if isnull
(Sum ({SO_Detail.Order_Qty}, {SO_Detail.Material})-Sum ({SO_Detail.Shipped_Qty}, {SO_Detail.Material})
)
then 0
else
(Sum ({SO_Detail.Order_Qty}, {SO_Detail.Material})-Sum ({SO_Detail.Shipped_Qty}, {SO_Detail.Material}))
Thanks for help on this formula!!