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!

Selecting the most current date

Status
Not open for further replies.

PJMoore17

Instructor
Feb 12, 2009
2
US
I am creating a report that pulls from a table with multiple entries. I would like to select only the most current date for the report.

Any help would be appreciated.
 
The most current date per some group?

-LB
 
My report contains 3 tables there is no grouping - I am selecting from a payhistory table that contains multiple values of a check date - ph_information.check_date(DateTime) - I want to only select the data from this table that contains the most current date in the field.
 
Create a SQL expression {%maxdate}:

(
select max(`check_date`)
from ph_information
)

Then in the record selection formula use:

{ph_information.check_date} = {%maxdate}

-LB

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top