你可以在你的table或query中加一个新字段.
例如在table中加入字段id,然后在table的oncalcfield的事件中加入
table.FieldByName('id').asinteger:=table1.RecNo;