Scaling results in data truncation

C

CCousins

The source table for this query is linked and not available for changing
field parameters. The source field is: Decimal with precision 5, scale 2.
The problem is the old "scaling of decimal value resulted in data truncation"
error when running:
Expr 1: Sum(field1 * field2)

I tried: Round(Sum(field1 * field2),2) and Format(Sum(field1 *
field2),"###.##")

With no luck. Since I can't touch the table, is there a way to handle this
on the query side or am I going to have to replicate the linked table in
order to change the field size/scaling?

Thanks for your help in advance
 
K

KARL DEWEY

I do not quite follow but did you try ---
Sum(Round([field1],2) * Round([field2],2))
 
C

CCousins

Thank you. I believe I may be the master at missing the obvious.

KARL DEWEY said:
I do not quite follow but did you try ---
Sum(Round([field1],2) * Round([field2],2))

--
KARL DEWEY
Build a little - Test a little


CCousins said:
The source table for this query is linked and not available for changing
field parameters. The source field is: Decimal with precision 5, scale 2.
The problem is the old "scaling of decimal value resulted in data truncation"
error when running:
Expr 1: Sum(field1 * field2)

I tried: Round(Sum(field1 * field2),2) and Format(Sum(field1 *
field2),"###.##")

With no luck. Since I can't touch the table, is there a way to handle this
on the query side or am I going to have to replicate the linked table in
order to change the field size/scaling?

Thanks for your help in advance
 

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