>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only