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 matches to a list of Zip Codes

Featured Replies

I would like to find entries in our database based on their region, found by zip code. I have a list of zip codes that I would like to search for, how can I have FileMaker show me all the records that are in my list?

I don't want to have to create a new find request for every zip code, that would take me forever to do. I figure FMP has some way to do this for me. :-)

Loop through your list and create a new request each time. When it exits the loop perform the find.

  • Author

Thank you, as usual I didn't even think of scripting it.

Here's the script I came up with based on your suggestion, however FMP always finishes the script telling me that no items met the search criteria. I've never scripted a Find before, am I doing it right?

FindZips.jpg

It would probably be faster to use a relationship from a global text field to the zipcode field. You can enter the zipcodes into the global field in Browse Mode, separated by carriage returns, and use a script with

Commit Records/Requests

If [isEmpty(globalToZipcodeRelationship::serial)]

Show Custom Dialog ["None of the requested zipcodes could be found."]

Else

Go to Related Record [show only related; "globalToZipcodeRelationship"]

End If

  • Author

Perfect! Thank you, this is indeed the kind of thing I was looking for. Works great.

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.