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 to keep a record of Mileage

Featured Replies

Hello all,

I have been trying to make a small car rental program so that everytime I rent a certain car the mileage will always be correct.

The car info is kept in a seperate file and I use the lookup function to pull over the Car Number, Plate, Yr, make etc,, but when I pull the starting mileage over I want it to be the ending mileage of the previous rental. I dont want the starting mileage to change on the rental form when inputting the mileage in.

I hope this make sense. Thanks in advance.

You can sort your related rental history for that specific CarID and then take the last record's value from the EndMileage and set it to a the new record's StartMileage.

  • Author

Thanks Mr_vodka

I will give it a try. I didn't think about it that way.

Scott

Wouldn't Max(CarID::EndMileage) work as well but quicker?

Hi OldFogey,

Yes it might be faster.

I personally never rely on the Max function to compensate for human typo error but thats a matter of choice. Your solution is just as fine.

I don't see how Max ( related::Field ) would be faster than Last ( related::Field ), especially when Field is not indexed.

  • Author

Thanks for your input. I am new to this so it will take some experimentation to get it right. Any help is appreciated.

Scott B)

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.