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!

view latest date only - in group 1

Status
Not open for further replies.

prigro

IS-IT--Management
Jan 3, 2002
42
CA
I have a report where items are grouped by the part number. The data contains only processed transactions, meaning there are only entries up until the present date. From each of these groups I want to view only the record with the most recent(last) date. Is there any way to do this?
 
Sort you report detail (where the dates are listed, as descending). Then create a formula field and place the following in it:
Code:
whileprintingrecords;
numbervar counter;
counter:=counter+1

Next, place the formula field in the detail section.

Next, click 'Format' on the menu bar, then select 'Section'. Choose the 'Detail' section and place the following code in the 'Suppress (No Drill-down)' event (click on the X+2 button next to it):
Code:
(WhilePrintingRecords;
NumberVar counter;
  counter > 1)

That should do it!
 
Thanks a lot
It worked perfectly!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top