Efectivamente, los registros se van guardando siempre al final. Es responsabilidad del programador ordenarlos si hace falta o crear un indice
En Delphi, el metodo
TDataSet.Insert para tablas Access, tiene en cuenta los indices
Cita:
For dBASE, FoxPro, and Access tables, the record is physically appended to the dataset at the end. If an index happens to be active, the new record may appear in a position relative to the index, but the record is still actually stored at the end of the table.
|
Asi que una de dos, o te creas un indice, u ordenas la tabla
Yo agregaria un campo mas, un timestamp, que seria la fecha/hora en la que se crea el registro, y ordenas o indexas por ese campo. Si Acesss no soporta el timestamp, un simple campo DateTime te servira, y cuando insertas el nuevo registro, le grabas la fecha/hora actuales. En Delphi eso lo haces con la funcion
Now