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.

Elapsed Time Quandry

Featured Replies

I have a DB that has several thousand individual records that have the following fields defined:

Start_Time

End_Time

In this DB I have to calculate for time elapsed between those 2 times. Easy enough and done. Now my bos would like me to give him the elapsed time between the

<> of Record "X"

<> of record Y.

Visually

Start End Elapsed

Record X 12:34PM 12:44PM 10 Min

record Y 12:47PM 12:58PM 11 Min

Elapsed between record x and y = 3 min.

Anyone have any ideas on how to automate this? I can't think of anything.

Thanks in advance for any help.

Steve

The key is to relate the second record, where you want the start time, back to the beginning record, where you want the finish time, with a StartRecordID key in the second record that equals the Prime Key in the beginning record.

Your challenge will be to set up the interface so that this is done with a minimum amount of pain to the user when creating the second record.

Once you have this, the elapsed time is then measured from the starting record as:

RelatedRecord::StartTime - Finish Time (in current record)

and can be stored as a calculated field in the beginning record.

Using this approach, you can have a daisy chain of elaped times between records given there is a way to always link them as the records are created.

I have a large real estate sales program for new home construction and I used a similar technique to link agreement of purchase and sale amendments to each other so that the flow of amendments could be followed and the current value would always be available.

HTH

Dave McQueen

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.