Report Help

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I only show the top three values for each group in my report?
 
I would add a text box to the detail section of your report:
Name: txtCount
Control Source: =1
Running Sum: Over Group
Visible: No
Then add code to the On Format event of the detail section:
'(This goes in the module window)
Cancel = Me.txtCount>3
 
It works perfectly. Thanks

Duane Hookom said:
I would add a text box to the detail section of your report:
Name: txtCount
Control Source: =1
Running Sum: Over Group
Visible: No
Then add code to the On Format event of the detail section:
'(This goes in the module window)
Cancel = Me.txtCount>3
 

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

Back
Top