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

Need a formula to pull the latest date

Status
Not open for further replies.

michpaus

Programmer
Oct 18, 2005
11
US
I have a database where expediting notes are logged by my users and then a date stamp is attached to them. I am trying to extract the latest date for the very last expediting note that was recorded. For example if someone put in one note yesterday and another today I want only today's note to display on the crystal report. As it is now I am showing the first note that was logged and not the latest and I am drawing a complete blank on date formulas. Any help would be appreciated.

Thanks!

 
By the date stamp "attached", do you mean that a datetime field is populated in a table, or within the notes field?

It's always best to clarify, posting example data and expected output generally resolves this, and including your software version and database should always be the case.

Try grouping on whatever field is appropriate, and then in the Report->Selection formulas->Group palce:

{table.date} = maximum({table.date},{table.groupfield})

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top