Computing.Net > Forums > Office Software > autonumber reset - access

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

autonumber reset - access

Reply to Message Icon

Name: marky81
Date: July 26, 2005 at 02:52:23 Pacific
OS: Windows XP SP2 Home Editi
CPU/Ram: AMD Athlon 1.8GHz, 1GB RA
Comment:

Hi,

Im creating a database that has a form for the header with the main record details, then a sbuform for a numbered list of products on said main record.

For the numbered list I thought I should use autonumber, but how do I get the autonumber to reset back to one when I start a whole new record?

AMD Athlon XP 1.8GHz
1GB RAM
120GB HDD SATA
GeForce 4 Ti4600 128MB
Nvidia nforce2 chipset w/ soundstorm
Pioneer DVD/RW
ABIT NF-7S Rev 2 Motherboard



Sponsored Link
Ads by Google

Response Number 1
Name: StuartS
Date: July 26, 2005 at 14:59:42 Pacific
Reply:

You cant. Autonumber creates a unique number for every record created. If you had the ability to reset the number back to one the numbers wouldn't be unique anymore and would defeat the object of autonumber.

If you want a numbering system that automatically increments then returns to one at some time you are going to have to programme it yourself.

Stuart


0

Response Number 2
Name: beliczynski
Date: August 26, 2005 at 10:34:10 Pacific
Reply:

I also had the same need to reset an autonumber table for a unique situation. A sales database that I was programming had a lot of garbage data from testing and debugging. I wanted to reset the table and the order count for real sales to be entered.

Solution: Copy and paste (Ctrl-c/Ctrl-v) the autonumbered table in question and then, when prompted, only copy the structure and not the contents. When the structure (only) is copied you will have a blank table which will start counting again from 1. In my case only real sales are to be entered from this point on.

Otherwise, as the previous poster mentioned, trying to reset autonumber within a table defeats the purpose of having autonumber in the first place.

Good luck.
Ed



0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: autonumber reset - access

ACCESS 2000 / Dedicated Printer www.computing.net/answers/office/access-2000-dedicated-printer/5680.html

Access Autonumber www.computing.net/answers/office/access-autonumber/597.html

Access autonumbers www.computing.net/answers/office/access-autonumbers/948.html