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

Effectively using MAXIMUM functions for dates within groups

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
We have Crystal Reports 7.0, and I need to find the maximum date, separately, for several different groups. EX) 25 people with 75 dates between them, or 3 each. I need the report to pull only the most recent date for EACH person, and not have the person duplicated with all dates.
 
If you are using something like Access for your database, why not do this in the native database - select the maximum date for each person as an extra field in your query (that is if you are basing your report on a query!!) and then you just need to show this extra field on your report, and reduce the processing that the crystal engine has to do.
 
I'm drawing the data from a homemade SQL table, and I honestly don't know any MAX functions in the query side of things to make this 'extra' date possible. If you have any ideas, i'm always up for them. Thanks much for the response.
 
Have you tried grouping by person. Put the date field in the detail section, right click on it and choose Insert Summary then on the screen displayed choose maximum in the top box and your group field in the second box.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top