DanWallace
Registered User.
- Local time
- Today, 11:59
- Joined
- Dec 5, 2008
- Messages
- 40
Hi there,
So the first part of my function selects all records in table nbif951 that have no matching record in npap001 using the field C_PLANTYPE. Now I used the query wizard to create this select statement, but it works fine when I test it on a smaller table. It's just when I try to run it on the full-size table (which contains a few million records) it just hangs and never makes it past the line that populates the recordset no matter how long I let it run. Any thoughts? Is there a limit on the size of what you can put into a recordset?
So the first part of my function selects all records in table nbif951 that have no matching record in npap001 using the field C_PLANTYPE. Now I used the query wizard to create this select statement, but it works fine when I test it on a smaller table. It's just when I try to run it on the full-size table (which contains a few million records) it just hangs and never makes it past the line that populates the recordset no matter how long I let it run. Any thoughts? Is there a limit on the size of what you can put into a recordset?
Code:
strSQL1 = "SELECT nbif951.C_CUSTOMER, nbif951.C_ACCOUNT, nbif951.C_PLANTYPE FROM nbif951 LEFT JOIN npap001 ON nbif951.[C_PLANTYPE] = npap001.[C_PLANTYPE] WHERE ((npap001.C_PLANTYPE) Is Null);"
Set db1 = CurrentDb
Set rsTable = db1.OpenRecordset(strSQL1)