Invalid use of Null

C

Claude

Dale, thanks for taking the time. Whether I get a solution or not, I think it
is damn kind of you. Below is the SQL of the troubling run that gives
"Invalid use of Null":-

SELECT [Invoices Grouped].[Invoice No], [Invoices Grouped].CustomerID,
[Invoices Grouped].ShipName, [Invoices Grouped].ExtendedPrice, [Invoices
Grouped].Freight, [Invoices Grouped].B4VAT, [Invoices Grouped].VAT, [Invoices
Grouped].InvoiceAmount
FROM Customers LEFT JOIN (([Credits Grouped] RIGHT JOIN [Invoices Grouped]
ON [Credits Grouped].CustomerID = [Invoices Grouped].CustomerID) LEFT JOIN
[Payments Grouped] ON [Invoices Grouped].CustomerID = [Payments
Grouped].CustomerID) ON Customers.CustomerID = [Invoices Grouped].CustomerID
GROUP BY [Invoices Grouped].[Invoice No], [Invoices Grouped].CustomerID,
[Invoices Grouped].ShipName, [Invoices Grouped].ExtendedPrice, [Invoices
Grouped].Freight, [Invoices Grouped].B4VAT, [Invoices Grouped].VAT, [Invoices
Grouped].InvoiceAmount
ORDER BY [Invoices Grouped].ShipName;
 
K

Klatuu

The problem is not obvious. First thing to do is run some ad hoc queries on
the tables involved to see which fields have Null values. Then, try using
the Nz function to eliminate the Nulls in that field.
 

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