Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21907

Unexpected recordset result during loop through

$
0
0
Forgive me if this is the wrong place. I am working on vba project, its really simple but I have one little piece that I can't figure out. I have generated 20 random numbers and put them in a database. I then want to query the database to put them in order DESC. The record set contains all the data, but then when I loop through to display it I get five rows not twenty. There seems to be no pattern or reason here. Please see the screen shot for code and result.Attachment 92605

Any ideas?
Attached Images
 

Viewing all articles
Browse latest Browse all 21907

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>