PC Review


Reply
Thread Tools Rate Thread

AutoNum not incrementing

 
 
=?Utf-8?B?U3VzYW5N?=
Guest
Posts: n/a
 
      18th Oct 2006
This was working. Access 2000 on Windows 2000. I have 5 tables linked. One
of my tables has an AutoNum as primary key. When I go into my form to ADD a
new record, it used to go to a new record and add the record, giving it a new
AutoNum number. Now, when I attempt to add, the AutoNum field shows me an
AutoNum of 640 (which was previously used). This is giving me a Duplicate
Rcd error msg. I cannot add any record via the form or via the table. Pls
Help!! I did a compact/repair on both the database and the application. I
made sure all of the Windows and Office updates are current. I did a system
scan and virus updates.
One hint: Two wks ago I went on vacation and did a backup. When I test the
application against this backup, I can 'add'. The person who did daily
backups for me said there were no problems. --- But I have 2 wks of data that
has been updated and added to, so don't want to have to lose that if I can't
resolve this. They say this problem just occured today. Can anyone help?
thank you!
 
Reply With Quote
 
 
 
 
Van T. Dinh
Guest
Posts: n/a
 
      18th Oct 2006
See if the following Microsoft Knowledge Base article helps:

http://support.microsoft.com/kb/257408/en-us

--
HTH
Van T. Dinh
MVP (Access)



"SusanM" <(E-Mail Removed)> wrote in message
news:270E8F32-DF41-4B1D-A19A-(E-Mail Removed)...
> This was working. Access 2000 on Windows 2000. I have 5 tables linked.
> One
> of my tables has an AutoNum as primary key. When I go into my form to ADD
> a
> new record, it used to go to a new record and add the record, giving it a
> new
> AutoNum number. Now, when I attempt to add, the AutoNum field shows me
> an
> AutoNum of 640 (which was previously used). This is giving me a Duplicate
> Rcd error msg. I cannot add any record via the form or via the table.
> Pls
> Help!! I did a compact/repair on both the database and the application.
> I
> made sure all of the Windows and Office updates are current. I did a
> system
> scan and virus updates.
> One hint: Two wks ago I went on vacation and did a backup. When I test
> the
> application against this backup, I can 'add'. The person who did daily
> backups for me said there were no problems. --- But I have 2 wks of data
> that
> has been updated and added to, so don't want to have to lose that if I
> can't
> resolve this. They say this problem just occured today. Can anyone help?
> thank you!



 
Reply With Quote
 
=?Utf-8?B?U3VzYW5N?=
Guest
Posts: n/a
 
      18th Oct 2006
I read the article you recommended. It states their problem as AutoNum
creating duplicate numbers. My problem is that when I attempt to add a
record, Access2000 does not go to the last new number (as it always did) but
finds a number in the middle of the database and attempts to reuse it. That
is when I get the error msg that the record I am attempting to add cannot be
a duplicate record. Anyway, I did as the article recommended anyway, and
checked my version of Windows Jet and it is 4.0.9025.0, which equates to
Windows Server 2003 SP1 and Update Rollup for Windows 2000 - SP4. I have
Access2000 and Windows2000. Then I installed Windows 2000 kb829558 (which is
basicaly reinstalling the above), rebooted and tested my add problem, and it
still exists.
** I really need to get this fixed. Any other suggestions? I have never
had a problem with my system since I created it 14 yrs ago. Thanks again!
"SusanM" wrote:

> This was working. Access 2000 on Windows 2000. I have 5 tables linked. One
> of my tables has an AutoNum as primary key. When I go into my form to ADD a
> new record, it used to go to a new record and add the record, giving it a new
> AutoNum number. Now, when I attempt to add, the AutoNum field shows me an
> AutoNum of 640 (which was previously used). This is giving me a Duplicate
> Rcd error msg. I cannot add any record via the form or via the table. Pls
> Help!! I did a compact/repair on both the database and the application. I
> made sure all of the Windows and Office updates are current. I did a system
> scan and virus updates.
> One hint: Two wks ago I went on vacation and did a backup. When I test the
> application against this backup, I can 'add'. The person who did daily
> backups for me said there were no problems. --- But I have 2 wks of data that
> has been updated and added to, so don't want to have to lose that if I can't
> resolve this. They say this problem just occured today. Can anyone help?
> thank you!

 
Reply With Quote
 
=?Utf-8?B?U3VzYW5N?=
Guest
Posts: n/a
 
      18th Oct 2006
I just had a thought. I created this system without coding (using wizards,
etc.). But is there a way that I can force the Add command to go to a
specified record (which would be the one after the last, as a new record).
If I could do this, then the AutoNum should begin incrementing correctly
again. I just tried to do this in my Macro, with GoTo, then the offset set
to 4859, which would be the new record. But it didn't work. I am hoping
there is another way to solve this.

"Van T. Dinh" wrote:

> See if the following Microsoft Knowledge Base article helps:
>
> http://support.microsoft.com/kb/257408/en-us
>
> --
> HTH
> Van T. Dinh
> MVP (Access)
>
>
>
> "SusanM" <(E-Mail Removed)> wrote in message
> news:270E8F32-DF41-4B1D-A19A-(E-Mail Removed)...
> > This was working. Access 2000 on Windows 2000. I have 5 tables linked.
> > One
> > of my tables has an AutoNum as primary key. When I go into my form to ADD
> > a
> > new record, it used to go to a new record and add the record, giving it a
> > new
> > AutoNum number. Now, when I attempt to add, the AutoNum field shows me
> > an
> > AutoNum of 640 (which was previously used). This is giving me a Duplicate
> > Rcd error msg. I cannot add any record via the form or via the table.
> > Pls
> > Help!! I did a compact/repair on both the database and the application.
> > I
> > made sure all of the Windows and Office updates are current. I did a
> > system
> > scan and virus updates.
> > One hint: Two wks ago I went on vacation and did a backup. When I test
> > the
> > application against this backup, I can 'add'. The person who did daily
> > backups for me said there were no problems. --- But I have 2 wks of data
> > that
> > has been updated and added to, so don't want to have to lose that if I
> > can't
> > resolve this. They say this problem just occured today. Can anyone help?
> > thank you!

>
>
>

 
Reply With Quote
 
Van T. Dinh
Guest
Posts: n/a
 
      18th Oct 2006
Susan

Can you confirm in the Table Design View that the Field is the AutoNumber
Field and not simply Long?

From what you described, I get a nagging suspicion that this is not an
AutoNumber Field. I have a feeling that this is simply a Field of Long data
type and your code / macro increment the number as new Records are added.

If that is the case, it is the code / Macros that you have to check to see
why it keeps re-allocating the same number ...

--
HTH
Van T. Dinh
MVP (Access)



"SusanM" <(E-Mail Removed)> wrote in message
news:2A260D36-6174-4C16-B918-(E-Mail Removed)...
>I read the article you recommended. It states their problem as AutoNum
> creating duplicate numbers. My problem is that when I attempt to add a
> record, Access2000 does not go to the last new number (as it always did)
> but
> finds a number in the middle of the database and attempts to reuse it.
> That
> is when I get the error msg that the record I am attempting to add cannot
> be
> a duplicate record. Anyway, I did as the article recommended anyway, and
> checked my version of Windows Jet and it is 4.0.9025.0, which equates to
> Windows Server 2003 SP1 and Update Rollup for Windows 2000 - SP4. I have
> Access2000 and Windows2000. Then I installed Windows 2000 kb829558 (which
> is
> basicaly reinstalling the above), rebooted and tested my add problem, and
> it
> still exists.
> ** I really need to get this fixed. Any other suggestions? I have never
> had a problem with my system since I created it 14 yrs ago. Thanks again!



 
Reply With Quote
 
=?Utf-8?B?U3VzYW5N?=
Guest
Posts: n/a
 
      18th Oct 2006
I just checked the table and ApplId is my primary key, data type of Autonum,
in the bottom section under General, field size is Long Integer, new values
is Increment and indexed is Yes(no duplicates). What are your thoughts with
the above info?

"Van T. Dinh" wrote:

> Susan
>
> Can you confirm in the Table Design View that the Field is the AutoNumber
> Field and not simply Long?
>
> From what you described, I get a nagging suspicion that this is not an
> AutoNumber Field. I have a feeling that this is simply a Field of Long data
> type and your code / macro increment the number as new Records are added.
>
> If that is the case, it is the code / Macros that you have to check to see
> why it keeps re-allocating the same number ...
>
> --
> HTH
> Van T. Dinh
> MVP (Access)
>
>
>
> "SusanM" <(E-Mail Removed)> wrote in message
> news:2A260D36-6174-4C16-B918-(E-Mail Removed)...
> >I read the article you recommended. It states their problem as AutoNum
> > creating duplicate numbers. My problem is that when I attempt to add a
> > record, Access2000 does not go to the last new number (as it always did)
> > but
> > finds a number in the middle of the database and attempts to reuse it.
> > That
> > is when I get the error msg that the record I am attempting to add cannot
> > be
> > a duplicate record. Anyway, I did as the article recommended anyway, and
> > checked my version of Windows Jet and it is 4.0.9025.0, which equates to
> > Windows Server 2003 SP1 and Update Rollup for Windows 2000 - SP4. I have
> > Access2000 and Windows2000. Then I installed Windows 2000 kb829558 (which
> > is
> > basicaly reinstalling the above), rebooted and tested my add problem, and
> > it
> > still exists.
> > ** I really need to get this fixed. Any other suggestions? I have never
> > had a problem with my system since I created it 14 yrs ago. Thanks again!

>
>
>

 
Reply With Quote
 
Van T. Dinh
Guest
Posts: n/a
 
      18th Oct 2006
Susan

The settings are correct.

Make a back-up of the current database FIRST.

Try Compact and Repair *the Back-End* if you have a split application. If
this still doesn't help, try the JetComp utility available on the Back-End.

If that still doesn't work, you may have to go back to one of the earlier
back-ups that works or you may need to use one of the professional data
recovery service ...

If the database is not too big and the data is not confidential, compact
then zip then send to me at bigpond.com (same name as the
discussions.microsoft.com) and I have a look if time permits.

--
HTH
Van T. Dinh
MVP (Access)



"SusanM" <(E-Mail Removed)> wrote in message
news:A4ED5A5D-2F17-4840-A17D-(E-Mail Removed)...
>I just checked the table and ApplId is my primary key, data type of
>Autonum,
> in the bottom section under General, field size is Long Integer, new
> values
> is Increment and indexed is Yes(no duplicates). What are your thoughts
> with
> the above info?
>



 
Reply With Quote
 
Tony Toews
Guest
Posts: n/a
 
      18th Oct 2006
SusanM <(E-Mail Removed)> wrote:

>This was working. Access 2000 on Windows 2000. I have 5 tables linked. One
>of my tables has an AutoNum as primary key. When I go into my form to ADD a
>new record, it used to go to a new record and add the record, giving it a new
>AutoNum number. Now, when I attempt to add, the AutoNum field shows me an
>AutoNum of 640 (which was previously used). This is giving me a Duplicate
>Rcd error msg. I cannot add any record via the form or via the table.


Set AutoNumbers to start from ...
http://allenbrowne.com/ser-26.html

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
 
Reply With Quote
 
=?Utf-8?B?U3VzYW5N?=
Guest
Posts: n/a
 
      18th Oct 2006
thank you. I do have a split application. I had done a compact/repair on the
back end (the database) and nothing changed. What is the JetComp utility --
do I go to Microsoft for that to download? I will try that next. My
application and data combined is 71,684 kb, so not large.

"Van T. Dinh" wrote:

> Susan
>
> The settings are correct.
>
> Make a back-up of the current database FIRST.
>
> Try Compact and Repair *the Back-End* if you have a split application. If
> this still doesn't help, try the JetComp utility available on the Back-End.
>
> If that still doesn't work, you may have to go back to one of the earlier
> back-ups that works or you may need to use one of the professional data
> recovery service ...
>
> If the database is not too big and the data is not confidential, compact
> then zip then send to me at bigpond.com (same name as the
> discussions.microsoft.com) and I have a look if time permits.
>
> --
> HTH
> Van T. Dinh
> MVP (Access)
>
>
>
> "SusanM" <(E-Mail Removed)> wrote in message
> news:A4ED5A5D-2F17-4840-A17D-(E-Mail Removed)...
> >I just checked the table and ApplId is my primary key, data type of
> >Autonum,
> > in the bottom section under General, field size is Long Integer, new
> > values
> > is Increment and indexed is Yes(no duplicates). What are your thoughts
> > with
> > the above info?
> >

>
>
>

 
Reply With Quote
 
=?Utf-8?B?U3VzYW5N?=
Guest
Posts: n/a
 
      18th Oct 2006
thank you. I looked at the site but that is far from my level of expertise.
I created the system 14 yrs ago using wizards, etc -- no coding. But it
sounds like this is what I need to do (if I knew how).... I guess after I
get through this problem I should learn SQL, huh?

"Tony Toews" wrote:

> SusanM <(E-Mail Removed)> wrote:
>
> >This was working. Access 2000 on Windows 2000. I have 5 tables linked. One
> >of my tables has an AutoNum as primary key. When I go into my form to ADD a
> >new record, it used to go to a new record and add the record, giving it a new
> >AutoNum number. Now, when I attempt to add, the AutoNum field shows me an
> >AutoNum of 640 (which was previously used). This is giving me a Duplicate
> >Rcd error msg. I cannot add any record via the form or via the table.

>
> Set AutoNumbers to start from ...
> http://allenbrowne.com/ser-26.html
>
> Tony
> --
> Tony Toews, Microsoft Access MVP
> Please respond only in the newsgroups so that others can
> read the entire thread of messages.
> Microsoft Access Links, Hints, Tips & Accounting Systems at
> http://www.granite.ab.ca/accsmstr.htm
>

 
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
AutoNum Field northstar Microsoft Access Forms 1 3rd Jun 2009 03:06 AM
Autonum, but not? :S NateBuckley Microsoft Access Database Table Design 6 20th May 2008 10:55 PM
Autonum Problem Norman P. via AccessMonster.com Microsoft Access Form Coding 1 31st May 2005 10:05 PM
Restart Autonum in VBA =?Utf-8?B?R2xlbiBCb2RpZQ==?= Microsoft Access VBA Modules 2 24th Nov 2004 03:49 AM
autonum =?Utf-8?B?bWFyaWU=?= Microsoft Access Form Coding 2 17th Jun 2004 07:00 AM


Features
 

Advertising
 

Newsgroups
 


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