I have records that consist of a date-time value along with a data value. I need to be able to pull the date-time associated with the maximum data value (not just the max value itself). How can I do this?
Actually, you've probably already half-answered my question: it's probably going to take a weird formula field in the detail section, right?
I need both--for each group, a max and min value and their dates need to be displayed (in a footer, I guess), and for the report, I need to find a global max and min and their respective dates (to be printed in the report header).
Thanx for all your help, Ken.
For the report Max you will have to initiate two variables to store a value and a date. You will replace the date and the value with the current record if the value in the current record is higher then the variable.
Another pair of variables for the minimum of the report, following a similar pattern.
For the groups you could do the same thing, and reset all four variables for each group. Or you could simply sort the group from low to high, and hide the details. Put the fileds on BOTH the GH and GF. the GH will show the minimum, the GF will show the maximum. You might even be able to underlay the GF and GH so that they print side by side. Ken Hamady
Thanks Ken.
Could you (or someone else) tell me where "variables" are declared? Is this in a formula? Also, where are they placed on the report? Sorry, this may be elementary, but I'm still kinda green.
Thanks loads,
bardley
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.