Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there a limit to records in recordset? 1

Status
Not open for further replies.

OrthoDocSoft

Programmer
May 7, 2004
291
US
Folks,

I Googled this, but couldn't find the answer. If I do this:

Code:
strSQL = "SELECT * FROM MyTable  '(and I know this is sub-optimal....) 

adoRecordSet.Open (strSQL), adoConnection, _
adOpenForwardOnly, adLockReadOnly
...

Is there a limit to the number of records that can be pulled into the recordset? Is it just over 32,000? I'm getting an "Overflow" error in a little app I'm writing and I suspect this is the cause.

Thanks,

Ortho

[lookaround] "you cain't fix 'stupid'...
 
I don't know what the limit is, but I can assure you it is much more than 32,000. Just out of curiosity, what type of database are you using? Some databases support computed columns, which could be failing for you.

-George

"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
 



If you are observing, "just over 32,000," you are probably using an index varaible that is declared Integer (32,767 max)

Try declaring as LONG.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Skip,

Spot on! I have been changing my integer types to longs, but not that one! Can't believe I didn't see that sooner.

Thanks much. And I can't believe (but here, actually, I can) that I got two replies in 15 minutes. This site is the bomb.

Ortho

[lookaround] "you cain't fix 'stupid'...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top