Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADO - Records v. Fields

Status
Not open for further replies.

chkote

Technical User
Nov 21, 2000
42
AU
This one has me puzzled (being new to ADO), how can I do
Recordset.RecordCount
and get the correct answer
do a count on fields and I get 0 ....Que??
 
Hmmm...although someone might have the answer here, maybe check the ADO forum, or the Visual Basic forum...they'd know for sure.

I checked with a code buddy of mine who uses recordsets, and she said that the recordset.recordcount is the correct way to get the number of records. Are you sure that your other code is working?
i.e. your objects are created correctly, the sql statement is actually returning something, etc.?

Jack

 
Oh, one other thing:

She said you HAVE to set this line of code:

Recordset.CursorLocation = adUseClient

or else it apparantly won't return the correct value.

Jack
 
Will post in another forum. My question wasn't worded too well. I actually do get the correct number of Records with adUseServer.
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top