D
David Benyo via AccessMonster.com
I have a combo box which is to display records not in another table.
tblEDLog has 180,000 records and will continue to grow
tblProcesses tracks processes on each record in tblEDLog
I'd like the combo box to display records from tblEDLog that aren't in
tblProcesses. The sql I have works, but is extremely slow because each record
is being checked. Doe anyone have any suggestions to speed up the query
result.
SELECT MedicalRecordNumber, AccountNumber FROM tblEDLog WHERE tblEDLog.
AccountNumber Not In (SELECT AccountNumber FROM tblProcesses);
Thanks for your ideas.
Dave
tblEDLog has 180,000 records and will continue to grow
tblProcesses tracks processes on each record in tblEDLog
I'd like the combo box to display records from tblEDLog that aren't in
tblProcesses. The sql I have works, but is extremely slow because each record
is being checked. Doe anyone have any suggestions to speed up the query
result.
SELECT MedicalRecordNumber, AccountNumber FROM tblEDLog WHERE tblEDLog.
AccountNumber Not In (SELECT AccountNumber FROM tblProcesses);
Thanks for your ideas.
Dave