Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6981 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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. :-)

Posted

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

Posted

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

Posted

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

This topic is 6981 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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