Skip 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.

Auto entry from previous record.

Featured Replies

  • Newbies

I need to track mileage from one week to the next.

* I need to initialize a record with the current milage (beginning odometer) reading.

* One week later, enter milage for the week ending in a new record (ending odometer reading) and display the beginning odometer reading from the previous week (record).

* Calculate the difference between the beginning odometer reading and the ending odometer reading. Make this value available for further calculations.

* Repeat this process each week (a new record for each week ending) using the previous weeks ending odometer reading as the current weeks beginning odometer reading.

Welcome to the forums

Something like the attached?

miles.zip

  • Author
  • Newbies

Thanks.

1. Why is weektotal "Unstored"?

2. Can the "endmiles" from a previous record be automatically entered into the "startmiles" of a new record?

Can the "endmiles" from a previous record be automatically entered into the "startmiles" of a new record?

Yes. You can set the startmiles field to lookup or auto-enter the previous endmiles value. For this, you will need to define a relationship to the previous record first.

Can the "endmiles" from a previous record be automatically entered into the "startmiles" of a new record?

The sample file does enter the startmiles for a new record [?]

  • Author
  • Newbies

I'm sorry efen; I used your form incorrectly. :B

It works perfectly. Thank you. I would not have ever figured that out on my own. :)

I also need to sort on vehicle ID because I have more than one vehicle stored in the database, and then find the sum of the week ending milages for a quarter for each vehicle (Jan 1-Mar 31, Apr 1-Jun 30, Jul 1-Sep 30, Oct 1-Dec 31) and display them in a field for further use.

Edited by Guest
Clarification

See attached for one way - this needs extra error traps and could probably be simplified, but it's a start

miles2.zip

  • Author
  • Newbies

Thanks efen. Your "start" is way beyond what I expected. I will look at it and see if I can figure out how it works. I dont know how to add traps so I will try to use what you've given me. Thanks again.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.