aharown07 Posted January 11, 2006 Posted January 11, 2006 I want FieldB to autoenter "n/a" whenever FieldA changes, regardless of what it changes to. Thought I'd do this with Evaluate. So I gave FieldB the calculation Evaluate("n/a";[FieldA]) The result I get is usually "?" in FieldB. Though I seem to recall getting a "0" once and a "1" once. So... I'm obviously not clear on the Evaluate concept. Advice?
Raybaudi Posted January 11, 2006 Posted January 11, 2006 Hi use this calc as auto-enter/replace of fieldB: Case( not IsEmpty ( fieldA );"n/a"; "" )
comment Posted January 11, 2006 Posted January 11, 2006 The reason why this is not working is that Evaluate() tries to evaluate the string "n/a" as a formula. What you wanted is: Evaluate ( Quote ("n/a") ; FieldA ) A simpler way to achieve the same result would be: Let ( trigger = FieldA ; "n/a")
aharown07 Posted January 12, 2006 Author Posted January 12, 2006 Thanks. The Case (actually I did it as an If) approach is what I ended up putting in the other day temporarily and it works well enough, but I was interested in understanding Evaluate better. I like the brevity of the Let calculation. Thanks for that. Anybody know of a good thread or other place to read up on all the ins and outs of Evaluate? I did some searching here but haven't used the magic keyword combination yet apparently. Not finding much.
Recommended Posts
This topic is 6955 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