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

Subtract values of record 2 from record 1?

Featured Replies

  • Newbies

Hi all,

probably a dumb question...

Two records and results fields in footer.

I need to be able to subtract the values of record two's fields from the same fields in record 1 and show the results in the fields in the footer. There are about 15 fields that will be compared and the results for each will either be a negative number, 0, or a positive number.

Hi Mabou,

You could do this by defining an extra serialnumber field (auto-entered) and a calculated field, with calculation (serialnumber - 1)

Then define a relation to the file itself, with the calculated field on the left side and the serialnumber on the right side.

Now you can use this relation to calculate the differences between a given record a the one preceeding it. Definition of such a calculation field would look like: YourField - Relation::Yourfield

Hope this helps,

feel free to ask if you don't get it.

Regards,

Ernst.

What I don't get is why it is so difficult to do a simple subtraction of the same field in two records. I can automatically do many things with these two fields, why not subtract? seems like a stupid problem.

In answer to your gracious reply, I don't get any of it. I am a freshman databaser and this is a flat file (no portals, relationships, etc).

Hey Mabou,

Because you started a new thread I replied to that one.

Ernst.

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.