Rated
Read 61,050 times
Contents
Related Categories
Data Control - Finding the number of records
Finding the number of records
To find the number of records, you use the code below
Data1.Recordset.MoveLast
Msgbox "Record Count: " & Data1.Recordset.RecordCount
This moves to the last record in the Recordset (think of it as the current
record your program can access), and then the RecordCount method counts all
the records up to the current record.
James first started writing tutorials on Visual Basic in 1999 whilst starting this website (then known as VB Web). Since then, the site has grown rapidly, and James has written numerous tutorials, articles and reviews on VB, PHP, ASP and C#. In October 2003, James formed the company Developer Fusion Ltd, which owns this website, and also offers various development services. In his spare time, he's a 3rd year undergraduate studying Computer Science in the UK. He's also a Visual Basic MVP.
Comments
-
Posted by Bhaskerit on 28 Jun 2007
Hi ! All,
I'm new in VB Programming and trying with all your given examples. I'm trying to create a database project. I've created a table in Access 2000 and wants to attatch it with my VB ... -
Posted by Regie on 28 Jul 2005
im a newbie in vb, im working now with the examples above, my objective is to save,add, delete files to the database i can't do it. there is a propmted error invalid or unqualified references. -
Posted by Regie on 28 Jul 2005
i am a newbie in vb,and now im currently working with the tutorials that are post above, my objective is that i want to save, add or delete a file to my stand-alone database. thanks for fast replies.
Posted by chandrababu on 28 Jul 2005
At least give some explanation about the environment or
what is you objective. -
Posted by Regie on 28 Jul 2005
hi there, why is that i can't add or save new file? the error propmt is
"invalid or unqualified reference." plz send me an answer or email it to me plz..hoping to hear from you. ASAP..thanks
|