A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

AutoNumber field question



 
 
Thread Tools Display Modes
  #1  
Old July 30th, 2009, 05:15 PM posted to microsoft.public.access.tablesdbdesign
Damian
external usenet poster
 
Posts: 141
Default AutoNumber field question

I have been playing around with adding things into tables and deleting them
BUT now when I enter a new value the auto Number starts from whatever its
been before. It does not reset to 1. Why is that and how do I fix it?

p.s. Gina where are you?
  #2  
Old July 30th, 2009, 05:58 PM posted to microsoft.public.access.tablesdbdesign
Duane Hookom
external usenet poster
 
Posts: 7,177
Default AutoNumber field question

The autonumber shouldn't generally make any difference. I try to hide this
from users. If you really feel you need to reset this, you can try delete
records and then compact your database.

--
Duane Hookom
Microsoft Access MVP


"Damian" wrote:

I have been playing around with adding things into tables and deleting them
BUT now when I enter a new value the auto Number starts from whatever its
been before. It does not reset to 1. Why is that and how do I fix it?

p.s. Gina where are you?

  #3  
Old July 30th, 2009, 06:12 PM posted to microsoft.public.access.tablesdbdesign
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default AutoNumber field question

Damian

I'll echo Duane's comments ...

Access Autonumbers are designed to provide a unique record identifier. They
are generally unfit for human consumption.

That said, why do you care what the value is? (if there's an underlying
business need, let us know, so we can offer relevant suggestions)

Regards

Jeff Boyce
Microsoft Office/Access MVP


"Damian" wrote in message
...
I have been playing around with adding things into tables and deleting them
BUT now when I enter a new value the auto Number starts from whatever its
been before. It does not reset to 1. Why is that and how do I fix it?

p.s. Gina where are you?



  #4  
Old July 30th, 2009, 06:56 PM posted to microsoft.public.access.tablesdbdesign
Damian
external usenet poster
 
Posts: 141
Default AutoNumber field question

You guys are right, there is no reason to care.
I was just wondering why its doing that and if it will cause problems.

Thank You.

"Jeff Boyce" wrote:

Damian

I'll echo Duane's comments ...

Access Autonumbers are designed to provide a unique record identifier. They
are generally unfit for human consumption.

That said, why do you care what the value is? (if there's an underlying
business need, let us know, so we can offer relevant suggestions)

Regards

Jeff Boyce
Microsoft Office/Access MVP


"Damian" wrote in message
...
I have been playing around with adding things into tables and deleting them
BUT now when I enter a new value the auto Number starts from whatever its
been before. It does not reset to 1. Why is that and how do I fix it?

p.s. Gina where are you?




  #5  
Old July 30th, 2009, 08:01 PM posted to microsoft.public.access.tablesdbdesign
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default AutoNumber field question

It's doing that because Access doesn't want to risk confusing any "child"
records that might be using that (now deleted) Autonumber from the parent
table.

No, no problems, unless, of course, you allow child records to have
'missing' parents...

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Damian" wrote in message
...
You guys are right, there is no reason to care.
I was just wondering why its doing that and if it will cause problems.

Thank You.

"Jeff Boyce" wrote:

Damian

I'll echo Duane's comments ...

Access Autonumbers are designed to provide a unique record identifier.
They
are generally unfit for human consumption.

That said, why do you care what the value is? (if there's an underlying
business need, let us know, so we can offer relevant suggestions)

Regards

Jeff Boyce
Microsoft Office/Access MVP


"Damian" wrote in message
...
I have been playing around with adding things into tables and deleting
them
BUT now when I enter a new value the auto Number starts from whatever
its
been before. It does not reset to 1. Why is that and how do I fix it?

p.s. Gina where are you?






  #6  
Old July 30th, 2009, 09:58 PM posted to microsoft.public.access.tablesdbdesign
John W. Vinson
external usenet poster
 
Posts: 18,261
Default AutoNumber field question

On Thu, 30 Jul 2009 10:56:02 -0700, Damian
wrote:

You guys are right, there is no reason to care.
I was just wondering why its doing that and if it will cause problems.


After you've entered somewhat over four billion records you'll run out of new
autonumber values. If you're entering them at one a second starting today
you'll run out sometime in 2145.

--

John W. Vinson [MVP]
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:34 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.