>My sql statment has calculations on numeric fields (two decimal places, eg, 6.2). The resulting calculated fields have too many decimal places (eg, 16.5).
>
>How can I keep them to 2 decimal places?
>
>Should I leave the data alone and truncate in the report? (ick)
>I tried SET FIXED ON, and the BROWSE looks lovely, but the report still prints all the decimal places.
>
>Thanks for stating the (not to me) obvious.
Sylvia, how does your SQL look like?
You could include ROUND() function (to certain number of decimal places)in your calculation expression, or include ROUND() in the report expression.
Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison