Number Problem

S

Shawn

I have a field called Total Price wich gives me the total value of a Job. I need to subtract different fields (HARDWARE COST,STEEL COST,TOTAL LABOUR COST witch are all calculated by formulas) from the total price to get my PROFIT/LOSS.
Now my problem is that if for example there is no hardware cost my hardware cost field is empty which in turn causes my PROFIT/LOSS field to be emply even though there is still LABOUR COST and STEEL COST against that job. If there is a value in all the cost fields then the formula works.

There may be a simple solution to this but I can't figure it out.
Any suggestions would be greatly appreciated.
Thanks Shawn
 
F

fredg

I have a field called Total Price wich gives me the total value of a Job. I need to subtract different fields (HARDWARE COST,STEEL COST,TOTAL LABOUR COST witch are all calculated by formulas) from the total price to get my PROFIT/LOSS.
Now my problem is that if for example there is no hardware cost my hardware cost field is empty which in turn causes my PROFIT/LOSS field to be emply even though there is still LABOUR COST and STEEL COST against that job. If there is a value in all the cost fields then the formula works.

There may be a simple solution to this but I can't figure it out.
Any suggestions would be greatly appreciated.
Thanks Shawn

Look up the Nz function in the VBA help files.

=Nz([FieldA]) + Nx(FieldB) - Nz(FieldC]) + etc.)
 

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