J
jwr
Following is the SQL from a query where I have inserted in the criteria
section of a field of the query (Dealer Name) Not "Skyland Equipment".
However, the name still pulls forward when the query is run. The spelling
is correct. Am I typing it correctly? There is no problem in running the
query, but I do not want this particular name to be in the query.
SELECT Customers.ControlNum, Orders.OrderDate, [Quantity]*[UnitPrice] AS [PO
Amount], [PO Amount]*0.95 AS [95%], [PO Amount]*0.05 AS [5%],
Dealer.DealerName
FROM (Dealer RIGHT JOIN (Customers INNER JOIN Orders ON Customers.CustomerID
= Orders.CustomerID) ON Dealer.DealerID = Orders.DealerID) INNER JOIN [Order
Details] ON Orders.OrderID = [Order Details].OrderID
WHERE (((Orders.OrderDate)>=[forms]![Report Date Range]![Beginning Order
Date] And (Orders.OrderDate)<=[forms]![Report Date Range]![Ending Order
Date]) AND (([Quantity]*[UnitPrice])>0) AND (Not
(Dealer.DealerName)="Skyland Equipment"))
ORDER BY Orders.OrderDate;
Thanks in advance
section of a field of the query (Dealer Name) Not "Skyland Equipment".
However, the name still pulls forward when the query is run. The spelling
is correct. Am I typing it correctly? There is no problem in running the
query, but I do not want this particular name to be in the query.
SELECT Customers.ControlNum, Orders.OrderDate, [Quantity]*[UnitPrice] AS [PO
Amount], [PO Amount]*0.95 AS [95%], [PO Amount]*0.05 AS [5%],
Dealer.DealerName
FROM (Dealer RIGHT JOIN (Customers INNER JOIN Orders ON Customers.CustomerID
= Orders.CustomerID) ON Dealer.DealerID = Orders.DealerID) INNER JOIN [Order
Details] ON Orders.OrderID = [Order Details].OrderID
WHERE (((Orders.OrderDate)>=[forms]![Report Date Range]![Beginning Order
Date] And (Orders.OrderDate)<=[forms]![Report Date Range]![Ending Order
Date]) AND (([Quantity]*[UnitPrice])>0) AND (Not
(Dealer.DealerName)="Skyland Equipment"))
ORDER BY Orders.OrderDate;
Thanks in advance