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!

How to open recordset properly ? (use .Execute method)

Status
Not open for further replies.

digarton

Programmer
Jun 16, 2000
3
CA
The problem is:<br>I'm working with SQL stored procedures and use Command objects and Execute method to open recordsets. But they don't support such properties as PageCount, RecordCount, etc. How can I fix that not using rs.Open method? <br>Thanx.
 
it all depends on how you open the recordset on whether you will get recordcount and other properties.<br><br><br>sSQL = What ever your stored procedure is called<br><br>rs.Open sSql, Conn object, (adOpenDynamic, adOpenStatic, adOpenForwardOnly, adOpenKeyset, adOpenUnspecified)<br><br>it defaults to ForwardOnly, for your record count and page count try adOpenStatic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top