Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Record
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Re: Record
Miscellaneous
Thread ID:
00606320
Message ID:
00606328
Views:
20
>Hi All:
> How can I get the total number of records in a ADO record set like RecCount() in vfp. I have tried rs.RecordCount, but it returns -1. (rs is a record set)
>Thanks

Try using a Static recordset. Something like:

strConn = “Your connection string”
sString = “Select * from My table”

oRS.Open sString ,strConn,3,3

nORSRecords = oRS.Recordcount


Tom
Previous
Reply
Map
View

Click here to load this message in the networking platform