That didn't work. The receivable field shouldn't ever return a null anyway...
In case it's relevant: From the previous UNION query that the query in question selects from:
Receivable = InvoiceAmount - Payments
where
InvoiceAmount = IIF( [some field] is null, 0, [some field] )
Payments = IIF( [some other field] is null, 0, [some other field] )
Code:
SELECT qryPayAppAmounts.PayAppID, null AS InvoiceID, qryPayAppAmounts.InvoiceNumber, qryPayAppAmounts.MonthWorked,
IIF(qryPayAppAmounts.InvoiceAmount is null, 0, qryPayAppAmounts.InvoiceAmount) AS InvoiceAmount,
IIF(qryPayAppPayments.Payments is null, 0, qryPayAppPayments.Payments) AS Payments,
qryPayAppAmounts.InvoiceAmount - Payments AS Receivable,
qryPayAppAmounts.IsPrivate, qryPayAppAmounts.Tier
FROM qryPayAppAmounts LEFT JOIN qryPayAppPayments ON qryPayAppAmounts.PayAppID = qryPayAppPayments.PayAppID
UNION ALL
SELECT null AS PayAppID, qryInvoiceAmounts.InvoiceID, qryInvoiceAmounts.InvoiceNumber, qryInvoiceAmounts.MonthWorked,
IIF(qryInvoiceAmounts.InvoiceAmount is null, 0, qryInvoiceAmounts.InvoiceAmount) AS InvoiceAmount,
IIF(qryInvoicePayments.Payments is null, 0, qryInvoicePayments.Payments) AS Payments,
InvoiceAmount - Payments AS Receivable,
qryInvoiceAmounts.IsPrivate, qryInvoiceAmounts.Tier
FROM qryInvoicePayments RIGHT JOIN qryInvoiceAmounts ON qryInvoicePayments.InvoiceID = qryInvoiceAmounts.InvoiceID;