ImArchimedes
Technical User
- Sep 25, 2007
- 62
Is there a function to pull in a value from the last record of a detail band?
Here's a little background incase I'm approaching this wrong.
I'm pulling a number of odometer readings into a report in the detail band under a grouping by vehicle. I'm trying to pull in the difference between the first record and last so I can find total miles traveled by said vehicle.
I can get that much done using shared variables but the trick is adding all the total miles traveled for all the vehicles at the end of the report. It won't let me summarize the totals field because, I think the formula to get last record is so dynamic. The shared ending odometer variable changes with each vehicle so adding it up at the end is impossible.
Is there some way to, formulaicly call on value in the last record of the detail band? I tried "Lastrecord({veh_odometer})" and variations like "Recordlast" but no luck. Is there a function to pull last record? I would think there would be.
Sorry this is so long. Thank you to anyone who even read this far into this.
Here's a little background incase I'm approaching this wrong.
I'm pulling a number of odometer readings into a report in the detail band under a grouping by vehicle. I'm trying to pull in the difference between the first record and last so I can find total miles traveled by said vehicle.
I can get that much done using shared variables but the trick is adding all the total miles traveled for all the vehicles at the end of the report. It won't let me summarize the totals field because, I think the formula to get last record is so dynamic. The shared ending odometer variable changes with each vehicle so adding it up at the end is impossible.
Is there some way to, formulaicly call on value in the last record of the detail band? I tried "Lastrecord({veh_odometer})" and variations like "Recordlast" but no luck. Is there a function to pull last record? I would think there would be.
Sorry this is so long. Thank you to anyone who even read this far into this.