How can I count the number of records in a recordset

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MaryJolly
    New Member
    • Aug 2008
    • 3

    How can I count the number of records in a recordset

    I am doing project in VB6. I want to count the records in a recordset. Is there any function for doing that?
  • QVeen72
    Recognized Expert Top Contributor
    • Oct 2006
    • 1445

    #2
    Hi,

    Open Recordset and use this :

    If Not RS.EOF Then
    RS.MoveLast
    MsgBox RS.RecordCount
    RS.MoveFirst
    End If

    Regards
    Veena

    Comment

    Working...