JC: added validate for access_desp when sql_code present.