Hi,
i'm trying to get the sum of a field (amount) based on whether or not another field (late) is valued 1 or 2
i have tried:
DSum("[amount]","qryrebatereport","[late]=1" or
iif([late]=1,sum([amount1]),sum([amount2]))
i have tried creating 2 different fields in thwe query based on thye amount neither of the above i can get to work in query or text box on report
any ideas would be greatly appreciated
Frank
i'm trying to get the sum of a field (amount) based on whether or not another field (late) is valued 1 or 2
i have tried:
DSum("[amount]","qryrebatereport","[late]=1" or
iif([late]=1,sum([amount1]),sum([amount2]))
i have tried creating 2 different fields in thwe query based on thye amount neither of the above i can get to work in query or text box on report
any ideas would be greatly appreciated
Frank