How to Get record from table on the basis of field id in dynamics axapta x++. just try following code in job to understand better way.
emplTable emplTable;
FieldId fieldId;
;
fieldId = fieldNum(emplTable, Emplid);
select emplTable;
info(emplTable.(fieldId));
select emplTable
where emplTable.(fieldId) == '1101';
info(emplTable.Name);