Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Return the Top 2 Records of a Group 1

Status
Not open for further replies.

FireGeek21

Technical User
Dec 12, 2007
218
US
I need to return the top 2 historical records of a group. Group is by Employee. Each employee may have a different number of records. Need the most recent 2 by date.

Thoughts???

FireGeek
(currently using Crystal Reports XI with Lawson 9.01)
 
Within your group sort descending by date.

Set up a running total to count the date and reset on change of group.

Suppress the Detail if the Running Total > 2
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top