Writing Code
 Crystal Reports Forum : Crystal Reports .NET 2003 : Writing Code
Message Icon Topic: Select last record date from a table Post Reply Post New Topic
Author Message
LarryC
Newbie
Newbie
Avatar

Joined: 25 Feb 2011
Location: Canada
Online Status: Offline
Posts: 1
Quote LarryC Replybullet Topic: Select last record date from a table
    Posted: 25 Feb 2011 at 2:40pm
Hello I'm new to this forum so not sure how this will turn out. I'm in Property Management and I have a property table that has the following fields:
 
Property #/Unit#/ Unit Sq Footage / AS of Date
 
I am trying to write a Crystal Report that would show the last unit sq footage in the database but am having trouble. I am able to do this in Access by grouping the data and using the "Last" criteria but can't find the right function in Crystal.
 
Here's a sample of the data: Table Name is Property_Unit_Sqft
 
1109-4224-2000-6/9/2009
1109-4224-2250-7/1/2009
1109-4224-2200-12/31/2009
1110-0110-1500-1/1/2009
1112-0220-1000-1/31/2009
 
I would like the report to show the lastest square footage for Unit 4224 of 2200 but I'm getting all 3.
 
Hope some one can help me.
 
Thanks
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 03 Mar 2011 at 4:00am
Group by property, sort by date descending.  Put your fields in the property group header section.  Suppress the details.
 
-Dell
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.027 seconds.