Click here to Skip to main content
11,633,983 members (63,328 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: ASP
Dear Friends,

In a interview, they have asked me a question.
If Recordset.count returns -1 value then what it means.
I dont know the answer for this. Kindly any one provide me a solution.
Posted 11-Oct-12 5:03am
Wes Aday at 11-Oct-12 11:09am
There is no "solution". -1 generally means no rows were affected.
Wes Aday at 11-Oct-12 11:15am
If you are talking about a DAO Recordset, then a -1 means that you have not moved the pointer so it does not know how many records are contained yet. AFAIK, been a long time since I saw one.
Maciej Los at 11-Oct-12 13:24pm
My virtual 5!

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Recordset.RecordCount property (ADO)
The RecordCount property will return -1 for a forward-only cursor; the actual count for a static or keyset cursor; and either -1 or the actual count for a dynamic cursor, depending on the data source.

More at:[^][^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 8,758
1 Sergey Alexandrovich Kryukov 8,264
2 Mika Wendelius 6,755
3 F-ES Sitecore 2,344
4 Suvendu Shekhar Giri 2,095

Advertise | Privacy | Mobile
Web01 | 2.8.150728.1 | Last Updated 11 Oct 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100