Much simpler to assign result direct to 'fieldcode' ?