procedure TForm1.Table1SIZEGetText(Sender: TField; var Text: String;
DisplayText: Boolean);
begin
if Table1.FieldByName('size').AsInteger > 10 then
begin
DBEdit1.Font.Color := Clred;
end else
begin
DBEdit1.Font.Color := ClBlack;
end;
DBEdit1.Text := Table1.FieldByName('Size').AsString;
end;