G
Guest
I have this hand-written query that takes excessively long to process and I
was wondering what the reason may be. This is the query:
select count(*) from assets where assetno not in (
select assetno from history WHERE TransType = "MF"
AND TranDate >= [Forms]![UnivCriteriaFrm].[txtFrom] And
TranDate<=[Forms]![UnivCriteriaFrm]![txtTo])
As you can see, the query is pretty simple. The assets table has 22,000+
records and history has 10,000+ records. The subselect ("select assetno from
history WHERE TransType = "MF"...") only returns 68 records. So what's
Access doing that takes so long to generate? It consumes so much time that I
get "Not Responding" for the Access window.
Thanks.
was wondering what the reason may be. This is the query:
select count(*) from assets where assetno not in (
select assetno from history WHERE TransType = "MF"
AND TranDate >= [Forms]![UnivCriteriaFrm].[txtFrom] And
TranDate<=[Forms]![UnivCriteriaFrm]![txtTo])
As you can see, the query is pretty simple. The assets table has 22,000+
records and history has 10,000+ records. The subselect ("select assetno from
history WHERE TransType = "MF"...") only returns 68 records. So what's
Access doing that takes so long to generate? It consumes so much time that I
get "Not Responding" for the Access window.
Thanks.