mleiser Posted April 4, 2006 Posted April 4, 2006 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?
Ender Posted April 5, 2006 Posted April 5, 2006 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*
mleiser Posted April 6, 2006 Author Posted April 6, 2006 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.
comment Posted April 6, 2006 Posted April 6, 2006 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.
LaRetta Posted April 6, 2006 Posted April 6, 2006 (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 April 6, 2006 by Guest Changed first sentence
mleiser Posted April 6, 2006 Author Posted April 6, 2006 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)
mleiser Posted April 6, 2006 Author Posted April 6, 2006 Could you explain why that is? There are no spaces in KB-1. Mike
mleiser Posted April 6, 2006 Author Posted April 6, 2006 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
comment Posted April 6, 2006 Posted April 6, 2006 I am under the impression that the real problem here is storing two separate facts in a single field.
Ender Posted April 7, 2006 Posted April 7, 2006 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now