Re: Null value prevents calculation



You've actually got two questions in there.

For the first, to see the jobs which have no payments, you need to change
the type of join between Jobs and Payments. Right-click on the join line,
select JoinProperties, then select the option to show ALL records from Jobs
and only those records from Payments where the joined fields are equal.

If you still have your second problem - subtracting a zero payment when the
payment is null - then use the Nz function to convert a null value to zero
(you can actually use it to convert the null to anything you want). The
syntax is:
nz([Payment],0)
Use this instead of [Payment] in your calculated expression. Be aware that
the result of expressions which contain Null will be null (except when the &
operator is used for concatenation, when a null is treated as a zero-length
string).

HTH,

Rob

"Yellowstone Valley Tree Surgeons" <yvts@xxxxxxxxxxx> wrote in message
news:Oueoyz8bGHA.3824@xxxxxxxxxxxxxxxxxxxxxxx
I have a table named Jobs that contains a [Total] field where the cost for
the job is entered. I have another table named Payments that contains a
[Payment] field where payments are entered. I have a one-to-many
relationship setup so there can be multiple payments for each job. When I
run a query to see which jobs are not paid, the ones with no payments at
all
do not show up because there has been no entry made yet. The field has a
null value. How can I get the query to subtract a zero payment from the
job
when there is no payment yet?




.



Relevant Pages

  • Re: Anything legal I can do?
    ... private agreement until he frequently missed payments then would jet ... frequently changes jobs and they have to trace him through tax then ... his house outright. ...
    (uk.gov.agency.csa)
  • Anything legal I can do?
    ... I have always worked so am a private client. ... private agreement until he frequently missed payments then would jet ... frequently changes jobs and they have to trace him through tax then ... I have provided for my daughter for 15 years, ...
    (uk.gov.agency.csa)
  • Re: Limit Data Input
    ... jobs, invoices, and payments, all three are related by ... a sales order number. ...
    (microsoft.public.access.forms)
  • Re: TransPennine Conductors to strike?
    ... do drivers get such payments when new technology ... advance purchase tickets. ... than "railman" jobs and would normally attract higher rates of pay. ...
    (uk.railway)
  • Re: Prevent Duplicates
    ... When I run the query, I get parameter box for Payment Amount and Order ID. ... information from the Payments Table?? ... I do get the OrderID, ... > totals. ...
    (microsoft.public.access.reports)