G
Guest
Hi,
I am having a problem with this: I am trying to add sums. The report was
working fine, until I realised that if 1 of the sum fields do not contain
data, which is a possibility, the full total is not calculated.
I know and have successfully used this formula before:
IIf ([HasData], Count([FieldName]),0).
Now I have these calculated fields, created in queries:
SumOfConsultFee
SumOfProfFeePrice
SumOfDrugPrice
The last one FullTotal was also designed in a query as an expression:
FullTotal: [SumOfConsultFee]+[SumOfProfFeePrice]+[SumOfDrugPrice]
I have tried to apply the following:
IIf([HasData], Count([SumOfConsultFee]),0)
Also: IIf([HasData], Sum([SumOfConsultFee]),0)
Without success, any help will be much appreciated as this is the final
issue on my report!
Thanks
I am having a problem with this: I am trying to add sums. The report was
working fine, until I realised that if 1 of the sum fields do not contain
data, which is a possibility, the full total is not calculated.
I know and have successfully used this formula before:
IIf ([HasData], Count([FieldName]),0).
Now I have these calculated fields, created in queries:
SumOfConsultFee
SumOfProfFeePrice
SumOfDrugPrice
The last one FullTotal was also designed in a query as an expression:
FullTotal: [SumOfConsultFee]+[SumOfProfFeePrice]+[SumOfDrugPrice]
I have tried to apply the following:
IIf([HasData], Count([SumOfConsultFee]),0)
Also: IIf([HasData], Sum([SumOfConsultFee]),0)
Without success, any help will be much appreciated as this is the final
issue on my report!
Thanks