How do you reset the Autonumber field so it starts from number 1 again. Also just when you delete a record it tends ignore the record number completely and jump to the next number rather than using the number just deleted. Is there a way around this?
As for re-using an autonumber, after deleting a record, you can't. That's the purpose of an autonumber - it is used once. However, it's not a problem to have missing autonumbers, as the autonumber is merely an identifier.
A way around it is to create your own numbering system, and not use the autonumber.
The reason i wish to rest the the auto number is because It was in the middle of development and is now ready to go live for users to use. Hense the reason why i wish for it begin from number 1 now.
Deleteing the column with the autonumber and then adding it in again seems to reset the auto numberx back to the proper sequence, starting with the number 1.
But as mentioned, why worry about the value. It's meaningless and your users should never see it anyways. IF you really need to use this value for something, it's better to come up with your own numbering method.
I must agree with Lilliabeth, what I would usually do is clear down all tables that should be blank and then compact before putting into production, which, as Lilliabeth says, resets all autonumbers. I would never delete a key field as it would mess up the relationships. There are other ways of resetting autonumers, SQL for example, but I go with Lilliabeth all the way on this one, for what its worth.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.