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

Finding Last Date

Status
Not open for further replies.

bld21

Technical User
Mar 1, 2010
49
US
I am using crystal 2008 and I have a field called {payment.pmt_eff_date}. The report will show an account with various dates of payments made. I need to only see the date of the last payment made. Is there a formula to select only the date of last payment made?

Thanks,
Bruce
 
Insert a group on account and then go to report->selection formula->GROUP and enter:

{payment.pmt_eff_date} = maximum({payment.pmt_eff_date},{table.account})

Only the most recent record will appear per count. However, if you intend to do calculations, you must use running totals, since non-group selected records will still contribute to the more usual inserted summaries.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top