Computer Learning Zone CLZ Access Excel Word Windows

The absence of evidence is not the evidence of absence.

-Carl Sagan
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Visitor Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Highlight Records in a Report
Michael Benson 

3 years ago
I created a report for a fitness competition DB with fields from a query eg "AgeGroup" (A,B,C,D)ect, with the protocols "2,4Km" points Field , "4Km" points Field and a "Total Score" field that is the sum of all the protocol points, the report is grouped by "AgeGroup" field and ascending on the "Total Score" field, I need to highlight the top 3 scores of each age group is that possible.
Kevin Yip  @Reply  
     
3 years ago
If it's ascending, the top scores will be at the bottom of the list.  Do you mean descending?  If so, the top scores will be the first 3 rows.  You can set up a counter variable in VBA to count the rows being printed, and set the background color accordingly.  Below picture is an example.  The counter needs to be set to zero initially (in the report's Open event in my example).  One is added to it every time a row is printed (in the report detail's Format event).  If the counter is <= 3, you set the proper background color.
Kevin Yip  @Reply  
     
3 years ago

Richard Rost  @Reply  
          
3 years ago
I've had something similar to this on my TechHelp video list for a while now. Kevin's solution is simple and elegant.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Visitor Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/7/2026 12:50:48 AM. PLT: 0s