There is a common misconception amongst Access users that the data is stored in the tables and is stored in the order in which the data has been input. That is a view that is very, very wrong. So, how are data stored, you may ask?
When there is no primary key, records are kept in no particular order at all. They are written into the file system wherever free space happens to exist. Access will usually add new data to the end of the file when room is available, but that is not guaranteed.
You might then ask, “what happens when there is a primary key?” The answer has a couple of parts. With a primary key in place, Access will try to order the records in the “table” by that key during a Compact and Repair. That ordering is not maintained as records are added or deleted, though, until the next Compact and Repair runs and attempts to sort again.
It also helps to know that when you open a table to view its data, you are not seeing the raw storehouse itself — you are effectively looking at a query. This is much like SQL Server, where viewing a table is really just looking at a view.
The takeaway is simple: if you need records returned in a specific order, build a query and apply a sort that matches the way you want to see the data.

