rounding of query output how?

techexpressinc

Registered User.
Local time
Today, 04:13
Joined
Nov 26, 2008
Messages
185
There does not seem to be a simple, obvious way, to round you output of a query:

I am getting numbers like this:
25.3175999112427

And rather have a number like this:
25.32

Sometimes I am doing a sum on a field.
Or if I am just query dumping a field.

I need a simple format process for output of my queries.

Thank you Russ - Rneuman at Scaninc.org
 
Have you tried the Round() function?
 
Yes it did not seem to work easily with the sum function:

I put this in the expression:
= ROUND ( [SumOfTIME-SA] , 2)


Then I get prompted for the value SumofTIME-SA


The sum of field TIME-SA is what I want rounded.

Thanks Russ
 
Try

Round(Sum([Time-SA]), 2)
 
Paul - I am tried it and got a syntax error.

"Expr1: Round(Sum([Time-SA]),2)" can you please advise a minor change


I did attached a screen print for helping on the resolution.

Thanks
Russ
 

Attachments

  • access-rounding-pbl-v052809.JPG
    access-rounding-pbl-v052809.JPG
    39.4 KB · Views: 98
You've just closed too many brackets.

Probably you've typed something like:
Expr1: Round(Sum([Time-SA]),2))

Your screenshot wasn't clear enough to be able to tell exactly where the problem is.
 
The screen shot is hard to read, and it doesn't look like the parentheses are correct. Also, you want Expression rather than Group By.
 
Thanks Paul - I will keep adjusting and update the forum as I hopefully get it correct.
Russ
 

Users who are viewing this thread

Back
Top Bottom