S
Synergy
The following query is using linked SQL Tables. It takes almost a minute to
run to return 210 records from about 30,000. I believe all of the records
are being returned from the SQL Server and processed by JET, but don't know
why. It is the (Shipping.Shipped) Is Null criteria which is causing the
slowdown.
INSERT INTO [_Task Scheduler Unshipped] ( ordDetID, [Qty Shipped] )
SELECT [Order Entry ST Products].ordDetID, Sum([Order Entry ST
Products].detQty) AS SumOfdetQty
FROM ([Order Entry ST Products Shipped] LEFT JOIN Shipping ON [Order Entry
ST Products Shipped].ShipID = Shipping.ShipID) RIGHT JOIN [Order Entry ST
Products] ON [Order Entry ST Products Shipped].ordDetID = [Order Entry ST
Products].ordDetID
WHERE (((Shipping.Shipped) Is Null Or (Shipping.Shipped)=0))
GROUP BY [Order Entry ST Products].ordDetID;
I need to speed this up and am at a loss as to what to do. I have more
complex queries than this that run in seconds.
Thanks and any suggestions.
God Bless,
Mark A. Sam
run to return 210 records from about 30,000. I believe all of the records
are being returned from the SQL Server and processed by JET, but don't know
why. It is the (Shipping.Shipped) Is Null criteria which is causing the
slowdown.
INSERT INTO [_Task Scheduler Unshipped] ( ordDetID, [Qty Shipped] )
SELECT [Order Entry ST Products].ordDetID, Sum([Order Entry ST
Products].detQty) AS SumOfdetQty
FROM ([Order Entry ST Products Shipped] LEFT JOIN Shipping ON [Order Entry
ST Products Shipped].ShipID = Shipping.ShipID) RIGHT JOIN [Order Entry ST
Products] ON [Order Entry ST Products Shipped].ordDetID = [Order Entry ST
Products].ordDetID
WHERE (((Shipping.Shipped) Is Null Or (Shipping.Shipped)=0))
GROUP BY [Order Entry ST Products].ordDetID;
I need to speed this up and am at a loss as to what to do. I have more
complex queries than this that run in seconds.
Thanks and any suggestions.
God Bless,
Mark A. Sam