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.

Max value from number field by this year

Featured Replies

field1=numer, field2=date stamp

How to find max value of number field by this year?

Thank you.

There are many ways to do that. It would be best if you explained the context in which this is needed.

  • Author

There are many ways to do that. It would be best if you explained the context in which this is needed.

each year number value begins from "1" and next number value must be next with increment = 1, but I can't do this with calculation like 'serial number' because if you delete any record, this number value will be lost.

I think the best way, is to find max number value, and set field "value+1", but I don't know how to make this script.

by clicking a button i need to see in a new record right value.

if you delete any record, this number value will be lost.

What exactly should happen if a record is deleted?

each year number value begins from "1"

This is difficult to implement reliably. What is this number being used for?

  • Author

What exactly should happen if a record is deleted?

This is difficult to implement reliably. What is this number being used for?

It's used for numbering documents.

So if I need for any record make this document, I need set max value by this year in the related table. So if any record will be deleted in related table (but I think it will be not happened) so next value must be next.

What is this number being used for?

It's used for numbering documents.

LOL. And numbering documents is used for...?

So if any record will be deleted in related table (but I think it will be not happened) so next value must be next.

That could mean anything. You didn't mention a related table before. Technically, it's easy to count the number of records in the current year, using a relationship matching on year. The problem is that the number doesn't change until a new record is created and committed - so it's quite possible to generate duplicates.

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.