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.

"If" calculation not evaluating all records

Featured Replies

  • Newbies

This is my first time writing a database application with FileMaker. I'm wondering if someone can help with my problem...

(1) I have two tables: "Requests" and "Employees" which are related through the 'EmployeeID' field. There may be multiple "Requests" records for each 'EmployeeID.'

(2) When I enter a 'WeekBegin' date in the "Employees" table, I want it to look at each "Requests" 'RequestDate' that matches that date and enter a '1' if a "Request" exists for that date and a '2' if it does not.

(3) The problem: It works fine for the first "Employee" who has a "Request" that matches. But if there are two or more "Employees" with a "Request" with matching dates, it assigns a '1' to one of them and a '2' to the rest.

(3a) Why is it not evaluating all matching "Employees"?

(3b) I am trying to accomplish this via a calculation field "if" statement, so that this data is calculated everytime the record is viewed. Do I need a script with a "find" command first and then a "loop" instead?

Thanks so much for any info!

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.