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.
Comments