sconolly Posted October 11, 2000 Posted October 11, 2000 Is there a calculation or script, which would find entries in a field which do not match a value list? In this case, the value list is being imposed after the file has been in use for several years. The "Category" field in the approximately 4,500 records contains all sorts of two-letter codes. I have created a value list and want to isolate records whose data does not match the list.
LiveOak Posted October 25, 2000 Posted October 25, 2000 You can create a calculation field: ErrorCheck (calculation, text) = Case( IsEmpty(Category), "", Category = "AA", "", Category = "BB", "", Category = "CC", "", "Error") This assumes that valid entries are (no entry), AA, BB, and CC. Anything else will set the field to "Error". This could also be a number field set to a one for an error. A find would be performed for the error state ("Error" or 1, your choice) in the field ErrorCheck -bd
sconolly Posted October 25, 2000 Author Posted October 25, 2000 Thanks for the tip. It's a nice solution. We worked it out by putting all the value list items in a comma separated text field called "Validate category 1" and applying the following calculation: If(PatternCount(Validate category 1,Category )>0 ,1,0 ) Performing a find on the resulting "0" gave us the records with unauthorized data.
Recommended Posts
This topic is 8796 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