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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top