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.

Featured Replies

Hi

I have a field, that returns a calculated value for a person’s age, using the calculation:

(Date of procedure - Date of birth) / 365

I would like the number in the age field to turn (for example) red if the persons age is over 70 yrs old, or under 1 year old.

I have tried adding:

Case (persons age>70; TextColor (persons age ; RGB (255 ; 0 ; 0 ) ); Evaluate ( persons age ) )

But my attempts fail, mostly FileMaker says there is a “operator missing”

Could someone please help with the next step to follow my existing calculation?

Thanks

How about simply:

Let (

age = ( Date of procedure - Date of birth ) / 365

;

Case ( age < 1 or age > 70 ; TextColor ( age ; RGB ( 255 ; 0 ; 0 ) ) ; age )

)

BTW, to calculate the approximate age you should use 365.2425 instead of 365 (leap years!) - or use the formula here to determine the exact age:

http://www.fmforums.com/forum/showpost.php?post/150446/

  • Author

Thank you

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.