Click here to Skip to main content
12,694,121 members (35,009 online)
Rate this:
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 6:03am
Wes Aday 11-Oct-12 11:09am
There is no "solution". -1 generally means no rows were affected.
Wes Aday 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 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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170118.1 | Last Updated 11 Oct 2012
Copyright © CodeProject, 1999-2017
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