rounding to 2 decimal places

G

Guest

I have a querry with the following (example
number of cards(A) amount per card (B) total amount ( A*B)
Both B and A*B are formated as 2 decimal place

I have another query simlar to above.

The two querries are joined by an SQL statement. BUT the "total Amount" results in the joined querry gives me the amount in 4 decimal places or more. I have tried to format in sql on the field names, but still cannot get the rquired 2 decimal places. can someone help
 
F

fredg

I have a querry with the following (example)
number of cards(A) amount per card (B) total amount ( A*B)
Both B and A*B are formated as 2 decimal places

I have another query simlar to above.

The two querries are joined by an SQL statement. BUT the "total Amount" results in the joined querry gives me the amount in 4 decimal places or more. I have tried to format in sql on the field names, but still cannot get the rquired 2 decimal places. can someone help?

Exp:Format([A]*,"#.00")
 
M

MGFoster

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

If you are using Access XP, or higher version, you can use the Round()
function on the final result (total amount). E.g.:

Round(TotalAmount, 2)

will round the value, TotalAmount, to 2 decimal places.

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQMYAtoechKqOuFEgEQKlOACgzCB0U+y6tTOt3t49fFgBLu379I4Amwd5
ofms35Ba3RprePeat57upC/H
=NO6Q
-----END PGP SIGNATURE-----
 
G

Guest

format does not work
I need the rounding function, but i have access 97 and there is nothing about rounding ih HELP
 

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