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.

Help with auto-enter calculation

Featured Replies

I am trying to create a field that will auto-enter the text "valid" or "Expired" based on a date field in my database. How should I do this? I tried using a calculation IF(expdate>=12/1/2004,"valid","expired"), but that doesn't return anything into my field.

Thanks for any advice!

Hi SFGiants, and welcome to FM Forums!

First step, instead of "12/1/2004" (which Filemaker reads as "twelve divided by 1 divided by 2004") , use "Date ( 12 , 1 , 2004 )".

Second, make sure expdate is a date field.

If those don't work, try creating an unstored calculation field and using the same calculation. If that doesn't work, it may have to do with the way your auto-enter is executed.

HTH,

Jerry

Hi sfgiant, smile.gif

You are close.

I prefer the case, it is easier to read, and understand.

Case(expdate >= Date(12, 1, 2004),"valid","expired")

HTH

Lee

cool.gif

Hi Jerry,

You are just too quick in typing.

tongue.gif

  • Author

Woo-Hoo! That worked! Thanks.

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.