Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Display last result only. Post Reply Post New Topic
Author Message
Valmont
Newbie
Newbie
Avatar

Joined: 29 Jan 2007
Online Status: Offline
Posts: 39
Quote Valmont Replybullet Topic: Display last result only.
    Posted: 04 Jun 2007 at 12:51am
I need to show three things in the detail section (or whatever-section Wink ):
1) Customer Number
2) Last Result
3) Date
 
A table where "Last Result" is stored exists obviously, but has a many to many relation with the Customer_View Table.
So A customernumber can have multiple results.
I only need data associated with the very last result. The result is associated with a date/time field. The most recent date/time field implicates the last result.
 
I wouldn't know how to do that. Can you help me?


Edited by Valmont - 04 Jun 2007 at 12:53am
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 04 Jun 2007 at 11:08am
I've posted elsewhere on this forum how to create the SQL that does this and put it in a Command object. Search the site to find the post. Another idea is to have the main report only list the records with the most recent date for each grouping field and then use a subreport to pull the data related to that record. Use the Overlay function to make it look like its all in the same Details section.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.