I have a report which is doing DLookUps to 'Total Charges' for printing orders, postage, copier, etc. The totals are currency with 2 decimals.
I then have an IIF statement totaling the fields from the report:
=IIf([txtAccountBalance] Is Null,0,[txtAccountBalance])+IIf([txtCopier] Is Null,0,[txtCopier])+IIf([txtPrinting] Is Null,0,[txtPrinting])+IIf([txtPostage] Is Null,0,[txtPostage])+IIf([txtUnPrintedTotal] Is Null,0,[txtUnPrintedTotal])+IIf([txtServFee] Is Null,0,[txtServFee])
This total now contains a number with 3 decimal places.
So when I calculated the new balance:
=IIf([txtTotalBalanceDue] Is Null,0,[txtTotalBalanceDue])-IIf([txtPayments] Is Null,0,[txtPayments])
My calculation does not round accordingly. I am 1 penny short.
Any help is appreciated.
Thank You
I then have an IIF statement totaling the fields from the report:
=IIf([txtAccountBalance] Is Null,0,[txtAccountBalance])+IIf([txtCopier] Is Null,0,[txtCopier])+IIf([txtPrinting] Is Null,0,[txtPrinting])+IIf([txtPostage] Is Null,0,[txtPostage])+IIf([txtUnPrintedTotal] Is Null,0,[txtUnPrintedTotal])+IIf([txtServFee] Is Null,0,[txtServFee])
This total now contains a number with 3 decimal places.
So when I calculated the new balance:
=IIf([txtTotalBalanceDue] Is Null,0,[txtTotalBalanceDue])-IIf([txtPayments] Is Null,0,[txtPayments])
My calculation does not round accordingly. I am 1 penny short.
Any help is appreciated.
Thank You