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.

How can I get data from the previous record?

Featured Replies

I have a database which calculates times for a motor race. The unique fields are passing time and car no. I calculate everything from these.

Some calculations (eg time between two cars) I do by subtracting a value in the current record (eg passing time) from its value in the previous record.

What's the best way to do this? Can I use the "AutoEnter from Last Record" feature? I'm importing 100 records at a time, so I'm not creating new records here.

What I've done for now is to write a script that works through all the records and cuts and pastes values from one record to the next. This works well and gives correct results. However, I would like to speed it up. For a 2 hour race, my calculations take 2 minutes - not much good if I want to publish updated times on the web every 30s.

Any suggestions would be very much appreciated.

If you ALWAYS want to find the time between two records in entry order, this will work:

Define Fields:

Record# = Status(CurrentRecordID)

Last Record# = Record# - 1

Time

Define Relationship with same file (call relationship "LastCar"):

Last Record# matches Record#

Define Field:

Elapsed Time = Time - LastCar::Time

Again, as long as you want the elapsed time to be between records in creation order, this will work. If you want to differentiate by Car# or something, you must build a more complex relationship. -bd

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.