Can I access a filtered recordset with VBA

In an Access form a recordset can be filtered by using the standard MS-Access filter buttons. Is it then possible to loop through that filtered recordset with VBA?
Who is Participating?
pteranodon72Connect With a Mentor Commented:
If you reference the recordsetclone property of the form, it will reflect the current filtering of the forms recordsource (as well as positioning within that recordset).

Dim rs as DAO.Recordset

Set rs = Me.RecordsetClone

While rs.EOF = False

'Do your thing here


Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.