within this command is this:
SELECT SO_Detail.Material, SO_Detail.SO_Line, SO_Detail.Deferred_Qty, SO_Detail.Backorder_Qty, SO_Detail.Shipped_Qty, Packlist_Detail.Quantity, Delivery.Shipped_Date, SO_Header.Customer_PO
FROM ((SO_Detail INNER JOIN Packlist_Detail ON SO_Detail.SO_Detail = Packlist_Detail.SO_Detail) INNER JOIN Delivery ON Packlist_Detail.SO_Detail = Delivery.SO_Detail) INNER JOIN SO_Header ON SO_Detail.Sales_Order = SO_Header.Sales_Order
WHERE (((SO_Detail.Status) In ('backorder','shipped')) AND ((Delivery.Shipped_Date) Between Date()-13 And Date()));
The overall select statement works except when I add in the date() range.
SELECT SO_Detail.Material, SO_Detail.SO_Line, SO_Detail.Deferred_Qty, SO_Detail.Backorder_Qty, SO_Detail.Shipped_Qty, Packlist_Detail.Quantity, Delivery.Shipped_Date, SO_Header.Customer_PO
FROM ((SO_Detail INNER JOIN Packlist_Detail ON SO_Detail.SO_Detail = Packlist_Detail.SO_Detail) INNER JOIN Delivery ON Packlist_Detail.SO_Detail = Delivery.SO_Detail) INNER JOIN SO_Header ON SO_Detail.Sales_Order = SO_Header.Sales_Order
WHERE (((SO_Detail.Status) In ('backorder','shipped')) AND ((Delivery.Shipped_Date) Between Date()-13 And Date()));
The overall select statement works except when I add in the date() range.