O
ondvirg via AccessMonster.com
I'm trying to return a subset of records from a SQL transaction table that
has over 35million records. I only need the transaction for about 37 accounts,
so I setup a table with the 37 numbers and then created a join in a query
between that table and the transaction table.
My problem is the query runs forever. However, if I remove the account list
table and simply type the numbers into the query criteria as an indude
statement, the query runs like lightning. What am I missing? I wanted to use
the account list as that changes from time to time and I don't want to keep
having to change the actual criteria of the query.
Any help is appreciated.
Thanks.
has over 35million records. I only need the transaction for about 37 accounts,
so I setup a table with the 37 numbers and then created a join in a query
between that table and the transaction table.
My problem is the query runs forever. However, if I remove the account list
table and simply type the numbers into the query criteria as an indude
statement, the query runs like lightning. What am I missing? I wanted to use
the account list as that changes from time to time and I don't want to keep
having to change the actual criteria of the query.
Any help is appreciated.
Thanks.