Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Getting the record count


Message #1 by Mitchell Spruill <MSpruill@M...> on Tue, 16 Jan 2001 12:39:36 -0500
Depending upon the type of  recordset, some do not fully populate until you
have moved to the last record. A Snapshot is an example of this. So in order
to get the correct record count you would have open the recordset and then:
rsData.MoveLast
rsData.MoveFirst
lRecordCount = rsData.RecordCount

----- Original Message -----
From: "Mitchell Spruill" <MSpruill@M...>
To: "professional vb" <pro_vb@p...>
Sent: Tuesday, January 16, 2001 11:39 AM
Subject: [pro_vb] Getting the record count


> I saw this earlier but lost it.
> Can someone tell me again the correct way to get the recordcount from a
> recordset.
>
> Thanks a bunch.
>
> (I'll not lose it again)
>
> Mitch Spruill
>
>
>



  Return to Index