We help IT Professionals succeed at work.

Recordcount of filtered recordset slow

leeskelton83 asked
Medium Priority
Last Modified: 2013-12-25
I am using the rst.Filter method and then trying to do a count of the filtered recordset. The problem is that the recordcount pauses for about 10-15 seconds. But for other larger recordset that are not filtered, recordcount works pretty fast. Does anyone know why this is or how I can get around it.
Watch Question

Software Engineer
The filter method is slow, especially if you have a lot of records or criteria.

It would be better to set another recordset variable and create an sql string to execute to fill it. You can use your filter condition as a where clause in the sql. This should be much faster.


Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts


I was trying to avoid opening another recordset but oh well.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.