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.

Find Records where several fields match

Featured Replies

Using FM Pro 6.

Is there a way to perform a find that returns all records where the contents of several fields are the same?

My attempt using a calculation field with an IF statement did not work as expected. Here's the calculation:

If( (PublicationLatin = OR_WA_Plants::ScientificName = FNA Name = Hitchcock Name = Jepson Name = Oregon Flora Name = WA Checklist Name = CalFlora Name = e_Flora BC Name), "match", "variance")

I should get "match" in my calc field (result set to text) when all the referenced fields are the same, "variance" when they're different. Those words show up, but when I page through my found records it's obvious that something isn't working. I get "variance" when the text is the same. I also get "match" when the fields are not the same (some are blank in some records).

Thank you,

-- Mark Turner

Try:

If( (PublicationLatin = OR_WA_Plants::ScientificName

and OR_WA_Plants::ScientificName = FNA Name

and FNA Name = Hitchcock Name

and Hitchcock Name = Jepson Name

and Jepson Name = Oregon Flora Name

and Oregon Flora Name = WA Checklist Name

and WA Checklist Name = CalFlora Name

and CalFlora Name = e_Flora BC Name, "match", "variance")

The line breaks are just there to make it easier to read; they have no meaning to, and are ignored by, Filemaker.

  • Author

Thanks, Doug. I tried pasting your version in and got the error message "There are too many separators in this function." Then I noticed a missing ) after the last field, put it in, and it works as expected. Now a search in the calculation field for "match" returns all records where the names are the same and a search for "variance" returns those with a difference.

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.