technoranger Posted February 24, 2007 Share Posted February 24, 2007 I need to set the content of a field based on a checkbox selection. For example, I have a field with checkboxes from a value list, think seven dwarfs. If Grumpy is checked, alone or in combination with other dwarfs, I need to set the content of a text field to "Put your happy eyes on". I can do that with a Case function, but I either get the text when any dwarf is checked, or when Grumpy is checked alone. I'm looking for a calculation like Case(Dwarf Includes but is not limited to "Grumpy"; "Put your happy eyes on";... Any ideas? Link to comment Share on other sites More sharing options...
Stuart Taylor Posted February 25, 2007 Share Posted February 25, 2007 If its grumpy and another you could test for ¶ aswell. Link to comment Share on other sites More sharing options...
comment Posted February 25, 2007 Share Posted February 25, 2007 Check out the FilterValues() function. Link to comment Share on other sites More sharing options...
technoranger Posted February 25, 2007 Author Share Posted February 25, 2007 Thanks....the FilterValues seemed to work. What I wrote was Case( FilterValues ( Dwarfs ; "Grumpy" ); "Put your happy eyes on"...... That seems to work, but is that what you intended? I spend a lot of time muddling through. R Link to comment Share on other sites More sharing options...
comment Posted February 25, 2007 Share Posted February 25, 2007 I don't think it can work that way. It needs to be: Case ( not IsEmpty ( FilterValues ( Dwarfs ; "Grumpy" ) ) ; "Put your happy eyes on" ) Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6054 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