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!

Finding the most current date among many 1

Status
Not open for further replies.

DonSaluga

MIS
Dec 17, 2001
9
US
I have two tables, job and job_history_status that I can join on job_no in a one to many relationship. The job_history_status table may contain several rows of job status change dates for one job, but I only need to retrieve the most current job status change date. I've tried numerous ways to do this but am not satisfied. Any suggestions? Thanks.
Don Saluga
 
Go to the Report menu, Edit Selection Formula, Group.

Assuming you've grouped by Job_No, enter the following:

{JobHistory.Change_Date} = Maximum({JobHistory.Change_Date},{Job.Job_No})

which will bring back the maximum, or latest, date for each job number.

Naith
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top