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

Help with age script

Featured Replies

  • Newbies

Hi Guys,

I'm a total filemaker beginner with some very minor programming experience.

So I am designing a database for my psychology lab where workers can input the birthdates of subjects and their age in months and years will automatically be calculated into a separate field. Right now I have it set up so that the value for the age field is calculated using:

Int((Status(CurrentDate) - birthdate) / 365.25) for years and

Int((Status(CurrentDate) - birthdate) / 12) for months

My question is how to get these fields to autoupdate once they change. For example, if I create a new record for a subject that is 9 months old, I don't believe that right now the subjects age will change to 10 months one month after they are entered into the database. How do I change this so the subjects' ages are always accurate regardless of when they were entered into the database?

You need to change then calculations to Unstored.

Select the calculation field in the Define Fields box, click on Options, then click on Storage. Select the checkbox that says "Do not store calculated results.

You might also want to do a search for Birthday calculations.

Lee

  • Author
  • Newbies

Thanks Lee, but I can't find the storage options on my version of Filemaker. Could this be an option that was included in later versions and not on 6.0?

I gave you the steps, after going into Define Fields. You just need to open of the Define Fields, as follows.

Main Menu >> File >> Define Fields (Command + Shift + D)

You might

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.