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.

Calculation to auto-fill largest value

Featured Replies

Hi there,

I have a checkbox list of items (30 or so), where the user can check multiple items for a record. With each item, there is an associated number with it in the table, (not visible in the checkbox). For example:

Item1 4

Item2 12

Item3 24...

There is a field above the checkbox that I want to automatically populate with the LARGEST number chosen. For example, if the user checks "Item1" and "Item2", the number "12" would populate in this field.

Anyone know what the calculation for this would be? Again, the items and the associated numbers reside in the same table.

Thanks

I don't understand your description:

the items and the associated numbers reside in the same table.

You have - hopefully - a table of Items where each item is a record with fields for Name and Value. Then you have another checkbox field to select multiple items - in the same table? That seems very strange. What is the purpose here?

  • Author

Sorry, what you said is correct. I have a table with the fields Name and Value as you described. On another layout (not table) I have a checkbox set of the Names only (filled by value list). The user can click multiple names, and I want the single Number field to populate with the largest value related to the checkboxes chosen. Does that help?

BTW, you helped me with this database a lot a couple years ago (I changed the names to make it simplier to explain) If you are still confused I can contact you offline so you know what I am referring too. Thanks man!

Well, if you define a self-join of the Items table as:

Items::CheckboxField = Items 2::Name

then the largest value among the selected items will be =

Max ( Items 2::Value )

If this is for display only, you can sort the relationship by Value, descending, and place the related field Items 2::Value on the layout.

  • Author

That worked perfectly, thanks man!

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.