Access 2002 Queries

S

Shabbir

Hi

I have a query which has three columns A,B, and

Column C is an expression which multiplies column A by Column B and the results come out with figures with multiple decimal places

How can i format the results so that it doesnt show any decimal places

I hope someone understands what it is i am trying to do!
 
J

J. Goddard

Hi -

Try using the format function in the expression for column C:

format([columnA * columnB],"###0").

The exact format you use will depend on size of the number. Note that
this will round the answer up if necessary. If you don't want to round
the answer, use the int function.

You can also set the format using the properties of the column (right
click the column)

HTH

John.
 
E

Eugene

Try right clicking in column C (when the query is in
design view), select Properties and set the format.

Hopefully that helps.
-----Original Message-----
Hi,

I have a query which has three columns A,B, and C

Column C is an expression which multiplies column A by
Column B and the results come out with figures with
multiple decimal places.
 

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