Newbies jss44 Posted August 5, 2008 Newbies Posted August 5, 2008 I've come across some responses to this, but nothing that has really helped yet, so I apologize if you've seen this before. I have a field that has a value list (a, b, c, d, e), and want to perform an auto calculation in a 2nd field that displays text based on the results of the first field. For example, if someone checks a, c, and d, the results in field 2 would be: You checked a You checked c You checked d I can't seem to figure out how to do this. Simple if/thens or case functions will only return one of the results. I'd prefer not to write a script, but am fine doing so, if necessary. Any ideas or references would be greatly appreciated! Thanks!
mr_vodka Posted August 5, 2008 Posted August 5, 2008 Try using a PatternCount PatternCount ( ¶ & YourField & ¶, ¶ & "a" & ¶ ) My other suggestion (and preference) is to create 5 number fields and use them as checkboxes with a flag value list of 1. Then the calc becomes less clunky. Case ( a and c, "A and C", b and x, "B ad C" ) etc.
comment Posted August 5, 2008 Posted August 5, 2008 How about: Case ( not IsEmpty ( field ) , "You checked " & Substitute ( field , "¶" , "¶You checked " ) )
mr_vodka Posted August 5, 2008 Posted August 5, 2008 Oh I didnt see that this was just a display of what was checked. I thought that there was further logic that needed to be processed with Case.
Recommended Posts
This topic is 5954 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