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.

A difficult if then statement

Featured Replies

  • Newbies

I need to create a calculation that will allow me to add 5, 2 or 1 years to a review date... but there is a snag.

In a nutshell here is what is required... I will get to the snag at the end.

A person in this database has a medical category (1,2 or 3) If they are category 1 or 2 and they are under 50 then they must be medically checked a 5 year intervals. If they are between 50 and 60 it must be every 2 years. If they are category 3 after the age of 40 it must be every 5 years.

That in its self is causing me some grief but here is the snag.

The field I am creating adds years to a review date OK but if a person has a medical at 49 on the 1/1/08 they will not need to be reviewed until 1/1/2013 and my date of review field will do this no worries. BUT, when he turns 50 the date of review field will change and rob him of three years.

How can I stop this from happening!!!:)

Either use a stored calc or use a number field with calculated result with Do not replace unchecked.

In addition to John's advice: Your date of review field needs to calculate not on the person's actual age, but their age at the date of their last review. If they haven't had a review, you can use their actual age. Is that enough to get you started?

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.