
Originally Posted by
Scorpio11
I have created a query in access that has a calculated cell. In the cell, the below formula can be found:
Cost: IIf([Type]="Purchase",[Amount]),[COS])
The information that this query pulls is information that I type into a cell, it does not pull any information that is a result of an expression. The source table has the number fields that are formatted as Single so that i can add in the 2 decimals for the cents of the transaction.
My question is this. Why does this expression add arbitrary decimals to my result when the information it pulls from does not have those numbers in.
EQ: The number is it pulling in is 411.66. The result is 411.660003662109.
I have tried a round expression, but the decimals remain and nothing changes. This is causing a problem as i am grouping similar transactions into a single line and excluding the lines that have a nil using I then have a <>0 criteria to exclude the Nil Balances.
The decimals are causing lines that should be Zero and excluded to be included in the list. Changing the format to Standard with 2 decimals does not help either (not that i thought it would, but i was as the end of the perverbial rope)
Is there a reason why Access does this, is there an expression i can use or perhaps a format i can use in the source table to prevent the expression for adding these phantom numbers.