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

I am going on 3 days without sleep and am bleary eyed and unable to figure this one out. I need to set a flag to "Y" when two dates are greater than a test date and where the foreign key is NULL. I am using the following formula but am not getting the desired result. Am I doing something wrong with the dates?

If((Invoice Max Date>2/8/2004 and ICL Commission Header ID<1 and ICL Signoff Date>2/8/2004), "Y", "N")

Coldspring:

What do you get if you drop one or more of the tests? Does each one work alone? Are any of them calculations? Sorry to give you more to think about when you're exhausted, but your calc looks okay from the outside.

-Stanley

I replaced your "Hard Coded" date of 2/8/2004 with a field "Any Date" in order to test different scenarios. I can't see anything wrong with your calculation, other than maybe it isn't unstored. Here is a case statement that seems to work.

Maybe we are not understanding what you are expecting.

Case(

Invoice Max Date>Any Date and

ICL Commission Header ID<1 and

ICL Signoff Date>Any Date, "Y", "N")

BTW, never, never, never go 3 days straight over a calculation. Much better on you health to just post your problem here.

cool.gif

Lee

FileMaker Version: 6

Platform: Mac OS 9

coldspring,

Date literals cannot appear directly in a calculation, use TextToDate() to make real dates:

If((Invoice Max Date>TextToDate("2/8/2004") and ICL Commission Header ID<1 and ICL Signoff Date>TextToDate("2/8/2004")), "Y", "N")

FileMaker Version: Dev 7

Platform: Mac OS X Panther

Yes,

I was surprised Stanley and Lee could have it working without the TextToDate()...

BTW, same is for your Max Date if it is Text.

FileMaker Version: 6

Platform: Mac OS 9

Hi Ugo,

I used a date field called "Any Date" instead of hard coding it and because it was returning what appeard to be the result that Coldspring was looking for, I didn't dig any deeper.

smile.gif

  • Author

Many thanks everybody...the TexttoDate did the trick!

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.