E
elbyc
I have a pass through query that works very quickly - 3 seconds to
return 11,000 records. When I use it as the basis for a find-
duplicates query, it takes several minutes to load. I used the Access
Query wizard to create the find-duplicates query with the following
SQL (I added a filter to show only records created after 10/1/2009 and
took off the order-by sequencing). Any ideas what would slow it down
so much?
SELECT Production_Review_Query.Investment_Team_Member,
Production_Review_Query.preferred_date,
Production_Review_Query.client_name, Production_Review_Query.id,
Production_Review_Query.submitted_on_behalf_of, "#http://smomac01/
PM_Request_form/index.php?ID=" & [id] & "##" AS URL,
Production_Review_Query.submitted_on
FROM Production_Review_Query
WHERE (((Production_Review_Query.Investment_Team_Member) In (SELECT
[Investment_Team_Member] FROM [Production_Review_Query] As Tmp GROUP
BY [Investment_Team_Member],[preferred_date],[client_name] HAVING
Count(*)>1 And [preferred_date] = [Production_Review_Query].
[preferred_date] And [client_name] = [Production_Review_Query].
[client_name])) AND
((Production_Review_Query.submitted_on)>#10/1/2009#));
return 11,000 records. When I use it as the basis for a find-
duplicates query, it takes several minutes to load. I used the Access
Query wizard to create the find-duplicates query with the following
SQL (I added a filter to show only records created after 10/1/2009 and
took off the order-by sequencing). Any ideas what would slow it down
so much?
SELECT Production_Review_Query.Investment_Team_Member,
Production_Review_Query.preferred_date,
Production_Review_Query.client_name, Production_Review_Query.id,
Production_Review_Query.submitted_on_behalf_of, "#http://smomac01/
PM_Request_form/index.php?ID=" & [id] & "##" AS URL,
Production_Review_Query.submitted_on
FROM Production_Review_Query
WHERE (((Production_Review_Query.Investment_Team_Member) In (SELECT
[Investment_Team_Member] FROM [Production_Review_Query] As Tmp GROUP
BY [Investment_Team_Member],[preferred_date],[client_name] HAVING
Count(*)>1 And [preferred_date] = [Production_Review_Query].
[preferred_date] And [client_name] = [Production_Review_Query].
[client_name])) AND
((Production_Review_Query.submitted_on)>#10/1/2009#));