ignore sign of numbers

R

R Subrahmanian

I have a table with, among others, Fields A and B having
positive numbers. C is a calculated field A minus B. I
require the total of C, ignoring the positive/ negative
sign. (i.e)If, in Record one C = -100 and for record two C
is +75, the total required is 175.

Can I do it using C = (If A > B (A-B); else (B-A).

I tried adding two fields - D = (A-B)squared; and C = SQRT
(D); I couldn't succeed. Perhaps, SQRT function only
supports numbers and not fields.

Can you kindly help me. Thanks for your support.
Subrahmanian
 

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