first 5 records

M

Maracay

Hi Guys

I have a reports sorted and grouped by the field machine, but in the detail
I just want to show the first 5 records for that group. Any help will be
appreciated

Thanks
 
D

Duane Hookom

Consider adding a text box to the detail section:
Name: txtCountGroup
Control Source: =1
Running Sum: Over Group
Visible: No
Then add code (module window) to the On Format event of the section:
Cancel = Me.txtCountGroup > 5
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top