Calculations

  • Thread starter Thread starter Tim Halpin
  • Start date Start date
T

Tim Halpin

I have a calculation which equals a figure from table A
minus a figure from table B. But when the corresponding
figure in table B isn't there, I want it to show the
figure from table A instead of the calculation. How can
this be done.
 
Tim Halpin said:
I have a calculation which equals a figure from table A
minus a figure from table B. But when the corresponding
figure in table B isn't there, I want it to show the
figure from table A instead of the calculation. How can
this be done.

Hi Tim,

Are you getting Null for your calculation
when tblB.field is Null?

If so, use Nz function.

Calc: tblA.field - Nz(tblB.field)


Please respond back if I have misunderstood.

Good luck,

Gary Walter
 
Tim said:
I have a calculation which equals a figure from table A
minus a figure from table B. But when the corresponding
figure in table B isn't there, I want it to show the
figure from table A instead of the calculation. How can
this be done.
Tim,
Exp:IIf(IsNull(),[A],[A]-)
 

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

Back
Top