NumRecs

  • Thread starter Thread starter Lauren B
  • Start date Start date
Lauren,

In both DAO and ADO it is the RecordCount method.

'In DAO...
Set rs = CurrentDb.OpenRecordset("tblMyTable")
rs.MoveLast '*** Very important
MsgBox rs.RecordCount
rs.MoveFirst '*** Equally as important

'In ADO...
rs.Open "tblMyTable", conn
MsgBox rs.RecordCount

Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia
 
Back
Top