I used Nz(Sum([Invoice Detail].[id_SalesTaxRate]*[Invoice Detail].
[id_Ext]),0) that you gave me
and that works great except for one problem. I get 14 digits to the
right of thedecimal.
5.40662486106157 this is correct but I want to display this as acurrency. How do just get
5.41 for the result ?
This suggests your column [Invoice Detail].[id_SalesTaxRate] is of
type double float (Double), being an approximate data type. In my
experience, tax authorities specify very exact tax rates. Therefore, I
suggest you change your column to a fixed point decimal using the
DECIMAL type. This would coerce your result to DECIMAL, therefore you
still require to explicitly round the value to two decimal places:
clarify with your designer which rounding algorithm (bankers,
symmetrical, etc), and perhaps the appropriate trade authority rules,
account department, auditor, etc (which typically require four or five
decimal places) as these factors will influence your choice of data
type too. FWIW many regulars would suggest using the CURRENCY type
(which is has a fixed scale of *four* decimal places, not two) but I
think it would be too confusing to have a column named SalesTax*Rate*
using CURRENCY.
Jamie.
--