I am querying a table in one table/database and using another table in another database to limit my criteria. When I run this without the subquery, it's fine; however when I run this the way it's shown below, it seems to want to take forever.
The results of the parent query without the subquery is 1,434 rows (and the qry_AlreadyCleared_Borr_21 resolves to 10 rows) so I should have only 10 rows in the end. What is wrong here? Thanks...
Code:
SELECT [clear void date]
FROM [tblCleared Comp2]
IN "C:\WINNT\PROFILES\NTSILAKI\DESKTOP\ESCHEATMENT STUFF\AUTODATA.MDB"
WHERE date between #7/1/03# and #7/31/03#
and [RECON CODE] = "21"
and [bank memo] in
(SELECT distinct CheckNumber
FROM qry_AlreadyCleared_Borr_21
IN "C:\WINNT\PROFILES\NTSILAKI\DESKTOP\ESCHEATMENT STUFF\unclaimed_NT.mdb");
The results of the parent query without the subquery is 1,434 rows (and the qry_AlreadyCleared_Borr_21 resolves to 10 rows) so I should have only 10 rows in the end. What is wrong here? Thanks...