Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6958 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

Posted

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.

Posted

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.

This topic is 6958 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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