G
Guest
I would like to retrieve the total records in a query. Is my following code
correct?
MS said to use the MoveLast command, but I have to install an error handle
if the recordset is empty.
....
Set qry = currentDatabase.OpenRecordset("Query1")
qry.MoveLast
debug.print qry.RecordCount
....
correct?
MS said to use the MoveLast command, but I have to install an error handle
if the recordset is empty.
....
Set qry = currentDatabase.OpenRecordset("Query1")
qry.MoveLast
debug.print qry.RecordCount
....