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.

Simply If Statement Not Working

Featured Replies

For some reason this very simple If statement isn't working the way I thought it would in a calculation field.

If(Day(EntryDate::Date)>15;0;Rates::V_HrsPerMonth)

The field EntryDate is a standard date field MM/DD/YY

So, I enter a date like 08/25/2012 .

The calculated field then should equate to: If 25>15 enter 0.

Instead I get the Rate from the second portion of the formula in the field. Any suggestions...it is probably something really simple but I just can't see it today.

Thanks in advance for your help! Donna

Is this calculation field in the EntryDate table?

  • Author

No, it is in a related table.

I am guessing there is more than one related record - and the first related record contains a date in the first half of the month.

  • Author

That isn't the case. The Table of EntryDate only has one record in it. It has a date field which I change to whatever MM/DD/YY that the timesheets are entered on. This is the field that I am trying to use in the formula.

Why don't you post a file showing the problem - hopefully, a simplified one.

Perhaps you could use a global field in the same table to enter the data (EntryDate), to then use that in the calculation.

I don't know what the relation between the tables are like to know what exactly is going on.

Is this a field of type Calculation or of type Number with an auto-enter calculation?

Are you sure the relationship is valid? If you change the calculation to just EntryDate::Date, what happens?

  • 2 weeks later...
  • Author

Sorry, I have been offline for awhile, the relationship wasn't valid. I needed to add another instance and now it appears to be working fine.

Thank you! Thank you! For all the suggestions. Donna :laugh2:

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.