PC Review


Reply
Thread Tools Rate Thread

Corrupt Autonumber in Field

 
 
=?Utf-8?B?aXIyNjEyMTk3Mw==?=
Guest
Posts: n/a
 
      13th Nov 2006
Hi,

Wonder if someone can help me please.

I have designed and created a database to log tests carried out on types of
forms that we design.

The database consists of only two tables, the main one housing all the form
data and the other showing each test plus any additional notes that the user
wishes to add.

Linking these tables on a one to many relationship is a unique test ID which
in the main table is an autonumber key field.

For some reason this has now become corrupt and instead of the next field
showing for example 414, it shows 2796467.

Can anyone help, I haven't seen this before, nor do I know of a way to
repair it.

I've tried taking out the field and adding it again to reset the field which
works, but the problem is that the additional notes then do not link to the
correct test, because this still shows the original unique test ID.

Many thanks

Chris
 
Reply With Quote
 
 
 
 
kingston via AccessMonster.com
Guest
Posts: n/a
 
      13th Nov 2006
Delete the corrupt record, compact and repair the database, and create an
append query to force the correct number into the table. HTH

ir26121973 wrote:
>Hi,
>
>Wonder if someone can help me please.
>
>I have designed and created a database to log tests carried out on types of
>forms that we design.
>
>The database consists of only two tables, the main one housing all the form
>data and the other showing each test plus any additional notes that the user
>wishes to add.
>
>Linking these tables on a one to many relationship is a unique test ID which
>in the main table is an autonumber key field.
>
>For some reason this has now become corrupt and instead of the next field
>showing for example 414, it shows 2796467.
>
>Can anyone help, I haven't seen this before, nor do I know of a way to
>repair it.
>
>I've tried taking out the field and adding it again to reset the field which
>works, but the problem is that the additional notes then do not link to the
>correct test, because this still shows the original unique test ID.
>
>Many thanks
>
>Chris


--
Message posted via http://www.accessmonster.com

 
Reply With Quote
 
=?Utf-8?B?aXIyNjEyMTk3Mw==?=
Guest
Posts: n/a
 
      13th Nov 2006
Thanks for this.

I've tried it but unfortunately this doesn't seem to work.

Any ideas please?

Regards

Chris

"kingston via AccessMonster.com" wrote:

> Delete the corrupt record, compact and repair the database, and create an
> append query to force the correct number into the table. HTH
>
> ir26121973 wrote:
> >Hi,
> >
> >Wonder if someone can help me please.
> >
> >I have designed and created a database to log tests carried out on types of
> >forms that we design.
> >
> >The database consists of only two tables, the main one housing all the form
> >data and the other showing each test plus any additional notes that the user
> >wishes to add.
> >
> >Linking these tables on a one to many relationship is a unique test ID which
> >in the main table is an autonumber key field.
> >
> >For some reason this has now become corrupt and instead of the next field
> >showing for example 414, it shows 2796467.
> >
> >Can anyone help, I haven't seen this before, nor do I know of a way to
> >repair it.
> >
> >I've tried taking out the field and adding it again to reset the field which
> >works, but the problem is that the additional notes then do not link to the
> >correct test, because this still shows the original unique test ID.
> >
> >Many thanks
> >
> >Chris

>
> --
> Message posted via http://www.accessmonster.com
>
>

 
Reply With Quote
 
kingston via AccessMonster.com
Guest
Posts: n/a
 
      13th Nov 2006
Try importing the data into a different database (minus the corrupt record).
Are you getting the same bad record number every time you try to fix the
table? Is it the first thing that happens or is it happening when you're
doing something in a form or query? IOW, try to fix it and immediately add a
record to the corrupted table.

ir26121973 wrote:
>Thanks for this.
>
>I've tried it but unfortunately this doesn't seem to work.
>
>Any ideas please?
>
>Regards
>
>Chris
>
>> Delete the corrupt record, compact and repair the database, and create an
>> append query to force the correct number into the table. HTH

>[quoted text clipped - 26 lines]
>> >
>> >Chris


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200611/1

 
Reply With Quote
 
Tony Toews
Guest
Posts: n/a
 
      13th Nov 2006
ir26121973 <(E-Mail Removed)> wrote:

>For some reason this has now become corrupt and instead of the next field
>showing for example 414, it shows 2796467.


There are two possible problems. Now are the users actually seeing
this number? If so autonumbers aren't meant for the users to see
them..

One problem may be that the autonumber New Values field is set to
Random rather than Increment. If this is the case then you will have
to delete the field and recreate it. If this field is participating
in a relationship and is the parent table then things become much more
challenging.

However in some situations the seed value for the autonumber field can
get corrupted.

Resetting AutoNumbers
http://www.allenbrowne.com/ser-40.html

ACC2000: AutoNumber Field Duplicates Previous Values After You Compact
and Repair a Database
http://support.microsoft.com/?kbid=257408

AutoNumber Field Duplicates Previous Values After You Compact and
Repair a Database
http://support.microsoft.com?kbid=291162

How To: Obtain the Latest Service Pack for the Microsoft Jet 4.0
Database Engine
http://support.microsoft.com/?id=239114

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
 
Joseph Meehan
Guest
Posts: n/a
 
      13th Nov 2006
ir26121973 wrote:
> Hi,
>
> Wonder if someone can help me please.
>
> I have designed and created a database to log tests carried out on
> types of forms that we design.
>
> The database consists of only two tables, the main one housing all
> the form data and the other showing each test plus any additional
> notes that the user wishes to add.
>
> Linking these tables on a one to many relationship is a unique test
> ID which in the main table is an autonumber key field.
>
> For some reason this has now become corrupt and instead of the next
> field showing for example 414, it shows 2796467.
>
> Can anyone help, I haven't seen this before, nor do I know of a way to
> repair it.
>
> I've tried taking out the field and adding it again to reset the
> field which works, but the problem is that the additional notes then
> do not link to the correct test, because this still shows the
> original unique test ID.
>
> Many thanks
>
> Chris


I don't have any suggestion other than those already offered for your
current problem, but I will suggest that autonumbers are not intended for
human consumption. They are only intended to provide unique numbers and
while they usually are in order, there is not guarantee that they will be
issued in any specific order. When they are not, and people see them, they
tend to get confused and concerned even if it does not really make a
difference for their use.


--
Joseph Meehan

Dia 's Muire duit



 
Reply With Quote
 
aaron.kempf@gmail.com
Guest
Posts: n/a
 
      13th Nov 2006
****ing retards around here

if autonumber isn't reliable-- then change backends.

MDB is for retards and newbies that don't have the mental capacity to
learn SQL Server

-Aaron




ir26121973 wrote:
> Hi,
>
> Wonder if someone can help me please.
>
> I have designed and created a database to log tests carried out on types of
> forms that we design.
>
> The database consists of only two tables, the main one housing all the form
> data and the other showing each test plus any additional notes that the user
> wishes to add.
>
> Linking these tables on a one to many relationship is a unique test ID which
> in the main table is an autonumber key field.
>
> For some reason this has now become corrupt and instead of the next field
> showing for example 414, it shows 2796467.
>
> Can anyone help, I haven't seen this before, nor do I know of a way to
> repair it.
>
> I've tried taking out the field and adding it again to reset the field which
> works, but the problem is that the additional notes then do not link to the
> correct test, because this still shows the original unique test ID.
>
> Many thanks
>
> Chris


 
Reply With Quote
 
aaron.kempf@gmail.com
Guest
Posts: n/a
 
      13th Nov 2006
AutoNumbers ARE designed for human consumption.

your bullshit database format is the root of the problem.

you just need to use Access Data Projects instead of your obsolete MDB
_CRAP_

-Aaron



Joseph Meehan wrote:
> ir26121973 wrote:
> > Hi,
> >
> > Wonder if someone can help me please.
> >
> > I have designed and created a database to log tests carried out on
> > types of forms that we design.
> >
> > The database consists of only two tables, the main one housing all
> > the form data and the other showing each test plus any additional
> > notes that the user wishes to add.
> >
> > Linking these tables on a one to many relationship is a unique test
> > ID which in the main table is an autonumber key field.
> >
> > For some reason this has now become corrupt and instead of the next
> > field showing for example 414, it shows 2796467.
> >
> > Can anyone help, I haven't seen this before, nor do I know of a way to
> > repair it.
> >
> > I've tried taking out the field and adding it again to reset the
> > field which works, but the problem is that the additional notes then
> > do not link to the correct test, because this still shows the
> > original unique test ID.
> >
> > Many thanks
> >
> > Chris

>
> I don't have any suggestion other than those already offered for your
> current problem, but I will suggest that autonumbers are not intended for
> human consumption. They are only intended to provide unique numbers and
> while they usually are in order, there is not guarantee that they will be
> issued in any specific order. When they are not, and people see them, they
> tend to get confused and concerned even if it does not really make a
> difference for their use.
>
>
> --
> Joseph Meehan
>
> Dia 's Muire duit


 
Reply With Quote
 
Joseph Meehan
Guest
Posts: n/a
 
      14th Nov 2006
(E-Mail Removed) wrote:
> AutoNumbers ARE designed for human consumption.
>
> your bullshit database format is the root of the problem.
>
> you just need to use Access Data Projects instead of your obsolete MDB
> _CRAP_
>
> -Aaron
>


Again, thank you for your highly intelligent thoughtful advice.

--
Joseph Meehan

Dia 's Muire duit



 
Reply With Quote
 
aaron.kempf@gmail.com
Guest
Posts: n/a
 
      14th Nov 2006
eat **** mother ****er

if youre database can't reliably MAKE AUTONUMBERS.. then do this:

a) GET A NEW DATABASE
b) GET A NEW DATABASE
c) GET A NEW DATABASE




Joseph Meehan wrote:
> (E-Mail Removed) wrote:
> > AutoNumbers ARE designed for human consumption.
> >
> > your bullshit database format is the root of the problem.
> >
> > you just need to use Access Data Projects instead of your obsolete MDB
> > _CRAP_
> >
> > -Aaron
> >

>
> Again, thank you for your highly intelligent thoughtful advice.
>
> --
> Joseph Meehan
>
> Dia 's Muire duit


 
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
Create a Sub Autonumber that re-assigns autonumber to each data groupin a sorted field. Junwenren Microsoft Access 1 4th Oct 2008 05:30 AM
Adding autonumber to a non autonumber field don Microsoft Access 2 22nd Apr 2008 05:00 PM
need to string an autonumber & text field to create a new field? =?Utf-8?B?ZGZlaWdlbjExNQ==?= Microsoft Access Database Table Design 2 1st Oct 2005 04:33 PM
AutoNumber field does not contain "(AutoNumber)" when adding a record Keith Microsoft Access Forms 3 12th Nov 2003 04:50 PM
corrupt autonumber riddlje Microsoft Access 0 7th Aug 2003 11:41 AM


Features
 

Advertising
 

Newsgroups
 


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