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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can i return a recordset length? 1

Status
Not open for further replies.

Kicket

Technical User
Jun 15, 2002
155
0
0
US
how can i return how many rows of data in my recordset?

ff
 
use Count property for the recordset.
i.e.
MyRecordset.Count
 
It depends on what type of Recordset (ADO or DAO) and whether or not your provider supports such properties, but you can look at the .RecordCount property, or the .AbsolutePosition (may be 0 or 1 based depening on provider if supported) property, or you can loop thru and count them.

That being said, these properties may not work will all cursor types either. Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
loop count?
so there's really not a function of property to return it?
okay, got it
thx
ff
 
yes,it's ADO
and recordCount worked fine.
thanks
ff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top