I'm trying to do and if/then statement with two conditions. Can this be done? The first condition is the field length. It has to be 10 digits to be a valid code.
Second, it can't be the same code as the code in the calculated field to the left from this field I'm working on.
First field with no issues
Field Name: First_Code_Found
If Length ([Tax_Code1]) >9 then [Tax_Code1] elseif Length ([Tax_Code2] >9 then [Tax_Code2] (etc., etc.) else '' endif
Second field needs to be the correct length in characters AND also not match the field above - First_Code_Found.
Field Name: Second_Tax_Code_Found
If Length ([Tax_Code1]) >9 and [Tax_Code1] != [First_Code_Found] then [Tax_Code1] elseif Length ([Tax_Code2] >9 and [Tax_Code2] != [First_Code_Found] then [Tax_Code2] (etc., etc.) else '' endif
This second field isn't working - any advice? Thanks for your help in advance.