|
-
April 29th, 1999, 04:46 PM
#1
How many Records returned
How can I find out how many records where returned from a query?
-
April 30th, 1999, 05:57 AM
#2
Re: How many Records returned
try this:
CRecordset.MoveLast();
CRecordset.GetRecordCount();
oren.
-
April 30th, 1999, 06:16 AM
#3
Re: How many Records returned
it depends on the database
"intelligent" db like oracle:
recSet.MoveLast();
count = recSet.GetRecordCound();
"stupid" db like Access:
recSet.MoveFirst();
while (recSet.MoveNext())
{
//doNothing
}
count = recSet.GetRecordCound();
I don't know why, but you need to traverse through every record to get the real count.
ciao,
richard
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
|