Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Start - Stop Time Fields

Featured Replies

I'm building a time clock.

I have four fields: START --- STOP --- ELAPSED TIME --- TOTAL TIME

START & STOP are scripted buttons which insert the current time into the fields.

ELAPSED TIME is the calculation STOP-START

TOTAL TIME is a summary field that sums ELAPSED TIME in all records.

Everything does what it is supposed to do as long as START & STOP have both been activated. If only START is activated, the resultant ELAPSED TIME shows up as a

negative value and skews the TOTAL TIME.

Is there another way to get to this calculation STOP minus START that won't end up

temporarily in a negative value?

Thanks,

Jarvis

Try using this for the calculation of Elapsed Time:

Case ( IsEmpty (Stop) ; 0 ;

Start - Stop)

  • Author

Thanks Ralph.

You're golden!

Jarvis

You're going to hit trouble when the start-stop period stradles midnight. All these negative time periods will appear.

To resolve the issue you also need to record start and finish DATES and incorporate them into the elapsed time calculation.

Though since you are using FMP 7 you might be able to avoid the problem by using TIMESTAMP instead of simple TIME.

  • Author

Thanks Vaughan,

Jarvis

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.