Skip to main content
Question

Max Time in Child Records

  • Jan 12, 2023 10:21 PM UTC
  • 0 replies
  • 51 views

Forum|alt.badge.img+20
Anyone have a work around to get the Max time from a child record? Maximum Summary field does not work on times, only numbers and dates.

There must be a work around I am not thinking of? Maybe convert the time to a 24 hour clock, and then to a number? Then max the number and convert back?

------------------------------
Mike Tamoush
------------------------------
This topic has been closed for replies.

MarkShnierYou
Forum|alt.badge.img+24
You can make a Duration field 

[my time of day field] - ToTimeOf Day("12:00 am")

I'm assuming that you can do a summary Maximum on that. Then if you need to convert that back to a time of day field you could make a new field 

ToTimestamp(Today(), ToTimeOfDay("12:00 am")) + [My summary Max duration field]

- ToTimestamp(Today(), ToTimeOfDay("12:00 am"))

I don't think you are allowed to add duration to a time of day field.  It's a vague memory but I did not have time to test.

.

------------------------------
Mark Shnier (Your Quickbase Coach)
mark.shnier@gmail.com
------------------------------

Forum|alt.badge.img+19
  • Qrew Champion
  • Jan 14, 2023 2:45 PM UTC
Mike,

I tested @Mark Shnier (Your Quickbase Coach)'s suggestion.

Here is my Child Table Data



Then my Parent Record sees this

So then the last step is to convert the Duration back into Time on the Parent Record with a second Formula field. 

Good suggestion by Mark as always.  I will have to remember this for the future.



------------------------------
Don Larson
------------------------------