B
bassstuf via AccessMonster.com
I need to make my query run faster and I am not sure if any improvements to
my SLQ can help.
It caculates off of 2 very large Tables
Table 1: Formation - 93521 Records (Query - "Form SN")
Table 2: Shipped Serial Numbers - 35437 Records (Query - "Shipped")
Each Table has a corisponding Query that runs that I use to display the
inital data in a field that I have listed as Combo =Part Number&" "&Serial
Number which I use to like the 2 Queries in another Query called Combo that
link.
The Combo Query takes about a minute to run, and I was wondering if there is
any way to improve the speed...I am a novice with SLQ statements, so the most
help would be great.
SELECT [Form SN].[Assembly Part#], [Form SN].[Assembly S/N], [Form SN].
[Warranty Expiration], [Form SN].[Ship List], [Form SN].[Ship Date] AS
[Delivery Date], Shipped.Customer, Shipped.[Customer PO], Shipped.Order AS
[Order Number], Shipped.Line, Shipped.[Ship Confirm Date] AS [Ship Date],
Shipped.[Ship Method], Shipped.AWB AS [Tracking Number], Shipped.Expr1,
DateAdd("yyyy",2,Shipped![Ship Confirm Date]) AS [Warranty Exp], [RMA Query].
[RMA Ship Date], DateDiff("d",[Ship Date],[RMA Ship Date]) AS [RMA Date Diff],
DateAdd("d",730,[RMA Ship Date]) AS [RMA Exp], DateAdd("d",730,[Ship Date])
AS [Prod Exp], IIf([RMA Date Diff]>0,[RMA Exp],[Prod Exp]) AS [Warranty
Experation]
FROM [RMA Query] RIGHT JOIN ([Form SN] INNER JOIN Shipped ON [Form SN].Expr1
= Shipped.Expr1) ON [RMA Query].Expr1 = Shipped.Expr1
WHERE ((([Form SN].[Assembly Part#])=[Forms]![Combo]![Part Number]) AND ((
[Form SN].[Assembly S/N])=[Forms]![Combo]![Serial Number]));
my SLQ can help.
It caculates off of 2 very large Tables
Table 1: Formation - 93521 Records (Query - "Form SN")
Table 2: Shipped Serial Numbers - 35437 Records (Query - "Shipped")
Each Table has a corisponding Query that runs that I use to display the
inital data in a field that I have listed as Combo =Part Number&" "&Serial
Number which I use to like the 2 Queries in another Query called Combo that
link.
The Combo Query takes about a minute to run, and I was wondering if there is
any way to improve the speed...I am a novice with SLQ statements, so the most
help would be great.
SELECT [Form SN].[Assembly Part#], [Form SN].[Assembly S/N], [Form SN].
[Warranty Expiration], [Form SN].[Ship List], [Form SN].[Ship Date] AS
[Delivery Date], Shipped.Customer, Shipped.[Customer PO], Shipped.Order AS
[Order Number], Shipped.Line, Shipped.[Ship Confirm Date] AS [Ship Date],
Shipped.[Ship Method], Shipped.AWB AS [Tracking Number], Shipped.Expr1,
DateAdd("yyyy",2,Shipped![Ship Confirm Date]) AS [Warranty Exp], [RMA Query].
[RMA Ship Date], DateDiff("d",[Ship Date],[RMA Ship Date]) AS [RMA Date Diff],
DateAdd("d",730,[RMA Ship Date]) AS [RMA Exp], DateAdd("d",730,[Ship Date])
AS [Prod Exp], IIf([RMA Date Diff]>0,[RMA Exp],[Prod Exp]) AS [Warranty
Experation]
FROM [RMA Query] RIGHT JOIN ([Form SN] INNER JOIN Shipped ON [Form SN].Expr1
= Shipped.Expr1) ON [RMA Query].Expr1 = Shipped.Expr1
WHERE ((([Form SN].[Assembly Part#])=[Forms]![Combo]![Part Number]) AND ((
[Form SN].[Assembly S/N])=[Forms]![Combo]![Serial Number]));