Baylah Posted September 28, 2006 Posted September 28, 2006 This Auto-Enter Calcluation does not seem to work. Result = Case(height<.75;"Restrict"; height>1.25;"Restrict";width>3;"Restrict";" ") Fields = Height Width Result This does work: Result = Case(height<.75;"Restrict";width>3;"Restrict";" ") But I need the full calculation to restrict if the first measurement is shorter than .75 and taller than 1.25. Any help would be greatly appreciated. thanks, Steve
Genx Posted September 28, 2006 Posted September 28, 2006 Hey Baylah. Why not use, "height <.75 and height >1.25" as your first condition
Baylah Posted September 28, 2006 Author Posted September 28, 2006 I tried that but not with the word "and" in between...let me see if it works that way. Does not work that way Steve
Fitch Posted September 28, 2006 Posted September 28, 2006 In our universe, a number can't be both less than .75 and greater than 1.25 (you must have meant OR rather than AND). The calc works fine as written. Make sure your height field is a number field and the result field is text. Also try unchecking the "do not replace" checkbox in the auto-enter options.
Baylah Posted September 28, 2006 Author Posted September 28, 2006 It still seems to ignore the second parameter. If I type: Case(height<.50 or height>1.25;"restrict";width>3.00; "restrict"; " ") The result I get in the populated fied is if I enter size smaller than .50 it restricts as it should, but if I put in a height larger than 1.25 I get no return at all. it seems like any statement other than the first is not evaluated. Any help? Thanks, Steve
Genx Posted September 29, 2006 Posted September 29, 2006 Oh right, sorry Fitch, i don't think i was paying attention to what i was saying. Anyway Baylah, try the following: If( height < 0.5 or height > 1.25 or width > 3; "restrict" ; " " ) My guess is with the quotes everywhere, you may have accidentally commented out some of the tests?
Fitch Posted September 29, 2006 Posted September 29, 2006 I'm telling you, it works fine as written. See attached. test.fp7.zip
Baylah Posted September 29, 2006 Author Posted September 29, 2006 Thank you, thank you, thank you! Steve
Recommended Posts
This topic is 6691 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