jdhunter Posted April 16, 2006 Posted April 16, 2006 I'm trying to create a calculation (logical function) using the case function. What i want to do is create a calculation that gets information from two fields then turns that information into another field. So what i want is Case (Field 1 = "A" and Field 2 = "B" ; 3) What i don't understand how to do is create the AND part of the equation so that i can incorperate more than one field into the logical function. Also is there a way to do the same way but with the > or < functions. Thanks a bunch. Jonny
Ender Posted April 16, 2006 Posted April 16, 2006 Your case() function as written will work. < and > operators work too, but it's not clear what you plan on using them for.
CoZiMan Posted April 16, 2006 Posted April 16, 2006 Well, it would work if there was a DEFAULT value specified after the 'AND' statement is evaluated. I STILL copy the different statements form the pull down list and then replace the individual terms from my database, even though I have them pretty well memorized. That would show you need another semicolon and a default value before the closing quote. And, yes, there would be an error message pop up if this was what you had in the calculation.
Ender Posted April 16, 2006 Posted April 16, 2006 The default result is optional for case() and if() statements. There is no error message that pops up if it's missing.
Recommended Posts
This topic is 6858 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