If mCode = "5B" &&then check the age If the age is below 55 then use mCode else If the age is between 55 and 64 then && this is where I don't know the syntax use code "7B" Else if age is between 65 and 74 && and i don't know the syntax use Code "6B" Else if age is > 75 use code "1B" EndifThank you for your advise.