I did not notice until I printed the SQL view that there is another query
included in this one. Both SQL statements are included below. THANKS.
SELECT DISTINCTROW Orders.ShipDate, Customers.CompanyName,
Orders.FreightCharge, Orders.SalesTaxRate,
Sum(CLng([Quantity]*[UnitPrice]*(1-[Discount])*100)/100) AS LineTotal, [Sum
Of Payments Query].[Total Payments]
FROM (Customers INNER JOIN (Orders LEFT JOIN [Sum Of Payments Query] ON
Orders.OrderID = [Sum Of Payments Query].OrderID) ON Customers.CustomerID =
Orders.CustomerID) LEFT JOIN [Order Details] ON Orders.OrderID = [Order
Details].OrderID
WHERE ((("WHERE ShipDate") Is Null))
GROUP BY Orders.ShipDate, Customers.CompanyName, Orders.FreightCharge,
Orders.SalesTaxRate, [Sum Of Payments Query].[Total Payments];
SUM OF PAYMENTS QUERY:
SELECT DISTINCTROW Payments.PaymentDate, Customers.ControlNum,
Payments.OrderID, Sum(Payments.PaymentAmount) AS [Total Payments]
FROM (Customers INNER JOIN Orders ON Customers.CustomerID =
Orders.CustomerID) LEFT JOIN Payments ON Orders.OrderID = Payments.OrderID
GROUP BY Payments.PaymentDate, Customers.ControlNum, Payments.OrderID;
tina said:
well, a simple SELECT query should accept Is Null on a date/time type data
field. i just double checked it, in case i was having a stupid attack or a
memory lapse, and it worked fine for me. i'm thinking maybe there's more
going on in the SQL that's affecting the outcome.
please post your SQL statement: open the query in design view. on the menu
bar, click View | SQL View. in the SQL pane, highlight the *entire*
statement and copy. then paste into a reply to this thread (you can use
Ctrl+V to paste, if necessary).
in
the