1、Dim Sum As DoubleSum = Tables("订单").Compute("Sum(数量)", "产品 = 'PD01'") - Tables("订单").Current("数量")
2、Dim Sum As DoubleSum = Tables("订单").Compute("Sum(数量)", "产品 = 'PD01' and SortKey <> " & Tables("订单").Current("SortKey"))