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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Suppress Detail Records 1

Status
Not open for further replies.

mmemon

Programmer
Nov 21, 2002
46
US
Hello

I have a detail section that displays reocrds this way:

Name Message Value
Donald Duck Last Name Changed To: Duckington
Donald Duck Last Name Changed To: Duckerson

This report shows records for the last 7 days. If 2 changes were made to Donald Duck within the past 7 days, I only want to should the most recent change. So, I began to write something like this:

If Next ({CNTRCTR.FullName}) = {CNTRCTR.FullName} and Next ({@Message}) = {@Message}
and Next ({CHANGE_DATA.APPRV_DATE}) > {CHANGE_DATA.APPRV_DATE} then

"Suppress the oldest record". This is where I am stuck..

Is there a better way to accomplish want I want? Am I on the right track? Any input would be appreciated...
Thanks!!!
 
Group by the Name, sort by {CHANGE_DATA.APPRV_DATE}, and place your fields in the {CHANGE_DATA.APPRV_DATE} group footer, and suppress the group header and the details section.

This will display the latest {CHANGE_DATA.APPRV_DATE} data.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top