This statement refers to record.field. Although the variable record is indeed a record, field is not the name of one of its component fields. Find the definition of record (it may be in the GLOBALS file), verify the names of its fields, and correct the spelling of field.