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

Select Newest Date

Status
Not open for further replies.

bld21

Technical User
Mar 1, 2010
49
US
I am using crystal reports 2008. I have a formula named @DATE with the following :

if (isnull({vehicle_lease_end.turn_in_dte}) or {vehicle_lease_end.turn_in_dte} = Date(1900, 01, 01)) then
{account_termination.term_dte} else {vehicle_lease_end.turn_in_dte}

The problem I have come across is that some accounts have more than one date. I would like to only see the account with the most current date and not all of them.

Thanks,
Bruce
 
Assuming you have a group on account, go to report->selection formula->GROUP and enter:

{@DATE} = maximum({@DATE},{table.account})

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top