Ah ... scope creep. In reality, you have had several solutions to your original question and, as such, this thread should now be marked solved.

I am assuming that you are only going to want to vary the number of records extracted occasionally so, rather than add the overhead of front end code which will rarely be used, you might just as well edit the filter.

For example, in my code, you would change:

            Criteria1:="<=3"

to:

            Criteria1:="<=5"

You should also bear in mind that my code simply automates the manual solution offered in post #5.


If you really need the additional code, I would suggest you ask for it in a separate thread.


Regards, TMS


If you are satisfied with the solution(s) provided, please mark your thread as Solved.


New quick method:
Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

Or you can use this way:

How to mark a thread Solved
Go to the first post
Click edit
Click Go Advanced
Just below the word Title you will see a dropdown with the word No prefix.
Change to Solved
Click Save


You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.