Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

I have a nested case set in my address book that returns one of three counties if the zip code falls in certain ranges. If the zip code does not match any of the ranges I set up in my calculation, is there a way to let the user input the county himself? I guess I'm asking how one could enter text into a calculation field, or if that's possible.

Here's my calculation, FWIW:

Case (Student Zip ≥ 98130 and Student Zip ≤ 98288; "King";

Student Zip ≥ 95602 and Student Zip ≤ 98293;"Snohomish";

Student Zip ≥ 98329 and Student Zip ≤ 98499; "Pierce")

The problem with this method is that zip codes don't exactly line up with counties, and we may have a student with an outside zip. So can I make the field ultimately completely modifiable by the user?

Posted

That seems like a good idea, but when I try to do it, the whole thing is borked. For some reason, using the exact same calculation as an autoenter for a field makes it so that it doesn't work (every county is returned as King). Do calculations work differently when used as auto-enter?

Thanks so much -

Daniel

Posted

Hi

1) be sure to uncheck the box: "Do not replace existing..."

2) the calc must be so modified, assuming that the name of this field is "CALCULATION":

Case(

Student Zip ≥ 98130 and Student Zip ≤ 98288; "King";

Student Zip ≥ 95602 and Student Zip ≤ 98293;"Snohomish";

Student Zip ≥ 98329 and Student Zip ≤ 98499; "Pierce";

CALCULATION

)

Posted

The second point is not a good idea, IMHO. There are 3 counties with known zip codes. Suppose a student has the zip code "98130", which returns "King". Now the student moves to another county, and the new zip code is "99999". Entering a new zip code with no match should leave the County field empty, ready to be filled manually. The suggested formula would re-enter "King".

Posted

as always comment is right !

the calc must be:

Case(

Student Zip ≥ 98130 and Student Zip ≤ 98288; "King";

Student Zip ≥ 95602 and Student Zip ≤ 98293;"Snohomish";

Student Zip ≥ 98329 and Student Zip ≤ 98499; "Pierce";

""

)

Posted

The default result isn't required on Case() or If(). FM assumes empty result unless specified - since vs. 7. :wink2:

This topic is 6775 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.