PC Review


Reply
Thread Tools Rate Thread

AutoNumber not creating new numbers

 
 
=?Utf-8?B?U3RldmUgVmluY2VudA==?=
Guest
Posts: n/a
 
      30th Oct 2007
I have an ID field in a table set to AutoNumber data type, and it's the
primary key (Indexed: Yes, no duplicates). When I create a new record,
Access re-uses an ID number that already exists in the table for that ID
field, and of course I get the message that a conflict exists in the index,
primary key, etc.

Any ideas where to start looking for the issue here? It's Access 2007. Is
this a new "feature" of 2007 -- where AutoNumber uses a number that is
already in use in the table? It is very strange.

Steve
 
Reply With Quote
 
 
 
 
Norman Yuan
Guest
Posts: n/a
 
      30th Oct 2007
Try "Compact and Repair..."


"Steve Vincent" <(E-Mail Removed)> wrote in message
news:CDA17E00-3BAA-4909-9C49-(E-Mail Removed)...
>I have an ID field in a table set to AutoNumber data type, and it's the
> primary key (Indexed: Yes, no duplicates). When I create a new record,
> Access re-uses an ID number that already exists in the table for that ID
> field, and of course I get the message that a conflict exists in the
> index,
> primary key, etc.
>
> Any ideas where to start looking for the issue here? It's Access 2007.
> Is
> this a new "feature" of 2007 -- where AutoNumber uses a number that is
> already in use in the table? It is very strange.
>
> Steve


 
Reply With Quote
 
=?Utf-8?B?U3RldmUgVmluY2VudA==?=
Guest
Posts: n/a
 
      30th Oct 2007
Did it, fixed it, thank you!

"Norman Yuan" wrote:

> Try "Compact and Repair..."
>
>
> "Steve Vincent" <(E-Mail Removed)> wrote in message
> news:CDA17E00-3BAA-4909-9C49-(E-Mail Removed)...
> >I have an ID field in a table set to AutoNumber data type, and it's the
> > primary key (Indexed: Yes, no duplicates). When I create a new record,
> > Access re-uses an ID number that already exists in the table for that ID
> > field, and of course I get the message that a conflict exists in the
> > index,
> > primary key, etc.
> >
> > Any ideas where to start looking for the issue here? It's Access 2007.
> > Is
> > this a new "feature" of 2007 -- where AutoNumber uses a number that is
> > already in use in the table? It is very strange.
> >
> > Steve

>
>

 
Reply With Quote
 
Allen Browne
Guest
Posts: n/a
 
      31st Oct 2007
Steve, here's an explanation of some of the causes for this problem:
Fixing AutoNumbers when Access assigns negatives or duplicates
at:
http://allenbrowne.com/ser-40.html

As Norman pointed out a compact/repair sometimes fixes this problem. You can
use the code in the article above to fix other cases.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Steve Vincent" <(E-Mail Removed)> wrote in message
news:E2BDC46D-8717-472C-807B-(E-Mail Removed)...
> Did it, fixed it, thank you!
>
> "Norman Yuan" wrote:
>
>> Try "Compact and Repair..."
>>
>>
>> "Steve Vincent" <(E-Mail Removed)> wrote in message
>> news:CDA17E00-3BAA-4909-9C49-(E-Mail Removed)...
>> >I have an ID field in a table set to AutoNumber data type, and it's the
>> > primary key (Indexed: Yes, no duplicates). When I create a new
>> > record,
>> > Access re-uses an ID number that already exists in the table for that
>> > ID
>> > field, and of course I get the message that a conflict exists in the
>> > index,
>> > primary key, etc.
>> >
>> > Any ideas where to start looking for the issue here? It's Access 2007.
>> > Is
>> > this a new "feature" of 2007 -- where AutoNumber uses a number that is
>> > already in use in the table? It is very strange.
>> >
>> > Steve


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Autonumber numbers Marsh Microsoft Access Getting Started 1 8th Apr 2010 01:59 PM
Autonumber is reusing previously assigned numbers-creating duplica Tammy Microsoft Access Forms 3 10th Sep 2009 02:13 PM
Autonumber is creating numbers that are not unique. Jon Microsoft Access 5 18th Jun 2008 01:38 AM
Auto Numbers (without using AutoNumber) =?Utf-8?B?RG9uIE1hcnNoYWxs?= Microsoft Access Forms 1 10th Feb 2004 08:59 PM
autonumber skips numbers Rose Microsoft Access Database Table Design 3 9th Dec 2003 09:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:49 PM.