Dagel Posted April 27, 2006 Posted April 27, 2006 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.
LaRetta Posted April 27, 2006 Posted April 27, 2006 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:
Dagel Posted April 27, 2006 Author Posted April 27, 2006 LaRetta- That did the trick. Thank you so much! Cheers!
Recommended Posts
This topic is 6843 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 accountSign in
Already have an account? Sign in here.
Sign In Now