Hi, Michael.
CONCLUSION:
There is an improvement, but still does not work as expected.
I give up.
Don't give up just yet. Open your table in Design View. Right-click on the
title bar and select Properties from the pop-up menu. Do you see anything
in the "Order By" field? If so, delete it. Close the Properties dialog
window and save the table. Open the table in Datasheet View. Are the
numbers in the AutoNumber field now in consecutive order, starting from one?
Hopefully, this fixes the last problem. But even if it doesn't (my next
suggestion would be to uninstall Access, then reinstall Access and the
service packs), I should explain some of the things about AutoNumbered
fields. The records retrieved from a table aren't necessarily in any order
unless one specifically uses a query with a sort order. The AutoNumber you
see is consecutively numbered for now, but there's no guarantee that it will
stay that way, because records get deleted or get started and not saved as a
record in the table, so there can be gaps in the numbering. And the records
won't necessarily be saved in chronological order from when they were
created. So the bottom line is that you may not want to keep this
AutoNumber field in this table if it needs to provide some meaning to you.
Depending upon what you need this row numbering for, you have several
options. If you just need a temporary row number while working with a group
of the records, you can use the techniques outlined on the following Web
page, although they do provide database bloat, so you'll need to compact the
database after you are finished using the temporary table.
ACC2000: How to Simulate a Dynamic Counter in a Table or a Query to Count
Records
http://support.microsoft.com/?id=199679
If you need this row numbering for reports, then you could add an unbound
text box in the Details section of the report and set its control source to
=1 and set the "Running Sum" as "Over Group."
HTH.
Gunny
See
http://www.QBuilt.com for all your database needs.
See
http://www.Access.QBuilt.com for Microsoft Access tips.
(Please remove ZERO_SPAM from my reply E-mail address, so that a message
will be forwarded to me.)