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 field with a text result

Featured Replies

I have a field that is supposed to change based on the current date, but it does not. The calculation is as follows:

 

Case (CAT'S AGE < 152; "KITTEN"; "ADULT") with the result being TEXT, and CAT'S AGE is defined as (Get(CurrentDate) -  DATE OF BIRTH) with the result being a NUMBER

 

When I enter a new record, and a date of birth, the calculation inserts the proper result. But what I want it to do is automatically update based on the current date whenever I open the file.

 

In other words when the current date is 152 days or later from the date of birth the field should change from KITTEN to ADULT automatically. The way it is working now the calculation works properly when the date of birth is firstentered, but the KITTEN/ADULT status does not change even when the difference between the two dates is greater than 152 days.

 

Mac, OS 10.9.4, FMP 11 Advanced

 

TIA

CAT'S AGE is defined as (Get(CurrentDate) -  DATE OF BIRTH) with the result being a NUMBER

 

Make sure this field is unstored.

  • Author

I think that does it - I had the KITTEN/ADULT Status unstored, but not the CAT"S AGE - Thanks for your help

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

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.