rounding off numbers in queries

A

ash

hi all,
i use the following SQL statement to base my subform
information on:

SELECT DISTINCTROW [Order Details].*,
CLng(nz([Quantity]*[UnitPrice])*100)/100 as [Line Item]
FROM [Order Details];

the value of the Line Item is rounded, for example,
1989 * 4.10 = 8154.90, but it is saved and displayed as
8155.

how can i change it so that it's stored as 8154.90?
thanks for your help.

ash
 
D

Duane Hookom

What do you mean by "saved"? There is nothing in the query that
saves/updates any values. There is no reason to store or save the result of
a calculation like this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top