Actually both recordsets are global. Will try it out. Thanks.yes, use the rs.filter property
Code:Dim db As DAO.Database Dim rs As DAO.Recordset Dim rs2 As DAO.Recordset Dim SQL_Select As String SQL_Select = "Select * from tbl1" Set db = CurrentDb() Set rs = db.OpenRecordset(SQL_Select) rs.Filter = "date1 < #1/1/24# " Set rs2 = rs.OpenRecordset rs.MoveLast rs2.MoveLast Debug.Print rs.RecordCount, rs2.RecordCount MyExit: rs.Close Set rs = Nothing rs2.Close Set rs2 = Nothing Set db = Nothing End Sub
Suppose you could also set the 1st recordset as global.