PC Review


Reply
Thread Tools Rate Thread

Autonumber Increment Error

 
 
JP
Guest
Posts: n/a
 
      2nd Mar 2005
I have a db with a number of tables that have autonumber primary keys. In
one of the tables, the autonumber is suddenly incrementing incorrectly. The
last number added was 291 and it's now trying to add number 245 (instead of
292).

By the way, that data tables are all in a back-end mdb, with the programs,
forms, reports, queries, etc. in a front-end mdb.

Compact and repair did not help. I was able to correct the problem by
creating a new mdb and then importing all the tables from the old mdb into
the new one.

Anyone know why this happens?? Also, more importantly, is there a better
way to correct the problem??


 
Reply With Quote
 
 
 
 
david epsom dot com dot au
Guest
Posts: n/a
 
      2nd Mar 2005
> Anyone know why this happens??

Dodgy version of Jet files on one of your workstations. Make sure ALL
workstations have the latest (SR8+) version of Jet. Download Jet from
MS, or apply all Windows security releases to Win XP.

> Also, more importantly, is there a better way to correct the problem??


? better ?

You can run code like this:

members.iinet.net.au/~allenbrowne/ser-40.html


(david)


"JP" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have a db with a number of tables that have autonumber primary keys. In
> one of the tables, the autonumber is suddenly incrementing incorrectly.
> The
> last number added was 291 and it's now trying to add number 245 (instead
> of
> 292).
>
> By the way, that data tables are all in a back-end mdb, with the programs,
> forms, reports, queries, etc. in a front-end mdb.
>
> Compact and repair did not help. I was able to correct the problem by
> creating a new mdb and then importing all the tables from the old mdb into
> the new one.
>
> Anyone know why this happens?? Also, more importantly, is there a better
> way to correct the problem??
>
>



 
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
Re: Autonumber Increment Tom van Stiphout Microsoft Access Forms 0 6th Oct 2008 03:09 PM
Autonumber field - increment =?Utf-8?B?S2FyZW5G?= Microsoft Access 2 3rd Aug 2007 05:42 PM
Autonumber Increment chopper57 via AccessMonster.com Microsoft Access ADP SQL Server 4 28th Mar 2007 06:06 AM
Re: Increment an autonumber? Jeff Boyce Microsoft Access Database Table Design 0 1st Nov 2003 01:19 PM
Increment an autonumber? alan Microsoft Access Database Table Design 0 29th Oct 2003 09:59 PM


Features
 

Advertising
 

Newsgroups
 


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