|
-
Mar 3rd, 2001, 12:03 PM
#1
Thread Starter
Addicted Member
Hi,
The RecordCount will be always -1.
So, how can I get the number of records in a forward-only recordset?
Thanks,
Michel Jr.
-
Mar 3rd, 2001, 12:10 PM
#2
Hyperactive Member
(?)
I am not sure of the question, however...
Have you used recordset.movefirst...recordset.movenext
Lee
 Mahalo 
VB6(SP5), VC++, COBOL, Basic, JAVA
MBA, MCSD, MCSE, A+
Computer Forensics
-
Mar 3rd, 2001, 12:14 PM
#3
Lively Member
Hmm...
You could loop thru the recordset and add the counter.
eg:
Code:
Dim i as Long
Do While Not rs.EOF
i = i + 1
rs.MoveNext
Loop
The only problem is you'll have no way to move back as it's forward only.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|