Jump to content

Summarizing Elapsed Time


Dagel
 Share

This topic is 5700 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I have two files: Jobs.fp5 and TimeTrack.fp5. The relationship is based on a JobNumber field (Acct #-Month/Year).

When I open a client's document from within Jobs (using AppleScript), a new record is created in TimeTrack with a time stamp. When the document is closed, TimeTrack logs the close time. I have an elapsed time field which is just CloseTime minus OpenTime. It is possible that each client will have multiple records in a given month.

I would like to somehow summarize those records and display that total with the corresponding record in Jobs.fp5. Sorry if this is a rookie question, but I can't seem to figure this one out.

Link to comment
Share on other sites

Hi Dagel,

Some people get time and timestamp mixed up. And some use number field and/or time fields and then use conversions to re-figure the time, so I’ll need to make a few assumptions. You may need to adjust accordingly. Assuming both fields (OpenTime and CloseTime) in TimeTrack are timestamp and ElapsedTime is TIME, the following would work:

In Jobs, create a calculation (TIME) with:

Sum(TimeTrack::ElapsedTime)

FileMaker does a great job of converting, even over day changes, variable-length months and leap years.

LaRetta :wink2:

Link to comment
Share on other sites

This topic is 5700 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.