zero instead of Null?

G

Guest

I have to show outstanding quantities of deliveries for orders. There is no
problem if there was a partial delivery: outstanding=ordered-delivered. In
case of orders where there was no delivery at all, the field delivered
contains no value i.e. null. Accordingly the field outstanding has no value
either although it should show the quantity ordered. How can I solve this
task? Should I have zero in the field delivered, and if yes, how?

Thank u very much for your kind assistance.
 
M

Marshall Barton

Coldeyes said:
I have to show outstanding quantities of deliveries for orders. There is no
problem if there was a partial delivery: outstanding=ordered-delivered. In
case of orders where there was no delivery at all, the field delivered
contains no value i.e. null. Accordingly the field outstanding has no value
either although it should show the quantity ordered. How can I solve this
task? Should I have zero in the field delivered, and if yes, how?


Just use the Nz function around the delivered field in the
expression:

Outstanding = Ordered - Nz(Delivered, 0)
 

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