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

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

Recommended Posts

Posted

I have records that have a field with values that look like this:

1-1

1-2

1-3

1

KG-1

PB-1

2-1

2-2

1-5

5-1

I'm looking for all the values that start with 1 like 1-1 1 1-3 1-5. If I enter a 1 int the find field, I get all those I'm looking for including KG-1 and PB-1, but NOT 5-1 - all three of which I don't want because they don't start with a 1. Oh yeah, it's a text field. Any help on what I'm doing wrong?

Posted

I don't see how "KG-1" and "PB-1" fit into your condition "I'm looking for all the values that start with 1 like 1-1 1 1-3 1-5." If you don't need those oddballs, you can do the find with:

==1*

Posted

I agree. I don't want those oddballs. My question is why did the results include KB-1 and not 5-1. I really only want any field starting with 1. Something is inconsistent here.

Posted

why did the results include KB-1 and not 5-1.

Because "KB-1" is two words and "5-1" is one word. When you search for a string (unquoted), Filemaker will find all records that have words that start with the string.

Posted (edited)

Hi Michael,

So the word break rules apply?

"one-2" = 2 words

"1-2" = 1 word

I find this subject fascinating and keep a list of these combinations (and exceptions). If anyone else is interested, I suggest Post#176047. Knowing these rules is quite valuable.

L

Edited by Guest
Changed first sentence
Posted

Can't do that because I want the value of 1 without the dash as well (I failed to list it as a possible value)

Posted

Could you explain why that is? There are no spaces in KB-1.

Mike

Posted

Beautiful. Thanks so much. If I want it to be one word I guess I could make the letter/number combinations without the dash (KB1,1-1,would work). Thanks again.

Mike

Posted

I am under the impression that the real problem here is storing two separate facts in a single field.

Agreed. Though I wish I knew what this data was.

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