NZ Statement

  • Thread starter Thread starter Ian
  • Start date Start date
I

Ian

I'm trying to work out a balance for each account in a
seriers of querys that are based on three tables.
Main tbl has the ClientID
Payment has the PaymentID linked to the ClientID
Property tbl links PropertyID to ClientID (1 to many)
Service tbl links ServiceID to PropertyID and each
service has a cost. Each cost is either rendered or not
rendered (Yes/No box)

Each service has a fee but the billing goes to the client
(who may have many properties each with many services).

I've created two queries one to sum the payments and the
other to sum the rendered costs

What I want is a (sum of payment)-(sum of rendered costs)
but if I create the expression
Balance: (NZ([sumofpayment],0))-(NZ([sumofcost],0))
All calculations with null values on one side or another
don't show at all. Can anyone help?
 

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

Similar Threads


Back
Top