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

I need to choose the first record and last record for a string field. 1

Status
Not open for further replies.

Lucindar

Technical User
Oct 3, 2004
6
US
I have tried to use the max or min function but it gives them to me alphabetically instead of by date. I have sorted the records by date. I am using Crystal 10. I appreciate any help that you can give.
 
If you want the entire record based on the related minimum and maximum dates, then group on the string field, we'll call it {table.string}, and then go to report->selection formula->GROUP and enter:

{table.date} = minimum({table.date},{table.string}) or
{table.date} = maximum({table.date},{table.string})

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top