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.

Making a number field negative

Featured Replies

  • Newbies

Hi everyone! I'm relatively new to filemaker but I think that what I'm trying to do is relatively simple.

I have a layout which I use to track cash. On one of the fields (Income_Expense) I have a drop-down list and either select "Income" if I want to record money that I received or "Expense" to record money that I have paid.

What I want to do is: When "Income_Expense" field is set to "Expense", then "Expense_Amount" field (which is the number field where I write down the amounts) is negative.

How do I write this statement??

Thanks!

The best way would be to enter expenses as negative amounts. Otherwise you will have an awkward user interface that changes the actual user input. For example, user edits an existing expense sum (which is already negative) - should it now flip automatically to positive?

But, if you prefer, you could try making the field auto-enter a calculated value (replacing existing value) =


Let ( [

amt = Abs ( Self )

] ;

Case ( Income_Expense = "Expense" ; -amt ; amt )



)

  • 2 weeks later...
  • Author
  • Newbies

Thank you so much!! It worked perfectly!! :smile:

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.