Connecting Tech Pros Worldwide Forums | Help | Site Map

autonummering in table gives problems

red zebra
Guest
 
Posts: n/a
#1: Nov 13 '05
The last days we had a lot of crasches using a application made in
Access. there appears a screen : this isn't a ms datbase, database
needs to be repaired. Repairing the database can't be done.
Looking into one of the tables i've seen in the ID autonummering under
line 40233 there' a negative number like
-1232356561313 and under that rule we have 5 blanco autonummering
rules. After these rules the nummering continues 40239 and the further
nummering seems to be OK. Deleting those 6 rules can't be done. Does
anyone know what can be done or where i can turn to ?
i'm from belgium.

thanks


Larry Linson
Guest
 
Posts: n/a
#2: Nov 13 '05

re: autonummering in table gives problems


"red zebra" <info@maldex.be> wrote
[color=blue]
> The last days we had a lot of crasches
> using a application made in Access. there
> appears a screen : this isn't a ms datbase,
> database needs to be repaired. Repairing
> the database can't be done.
> Looking into one of the tables i've seen in
> the ID autonummering under line 40233
> there' a negative number like
> -1232356561313 and under that rule we
> have 5 blanco autonummering rules. After
> these rules the nummering continues 40239
> and the further nummering seems to be OK.
> Deleting those 6 rules can't be done. Does
> anyone know what can be done or where
> i can turn to ?[/color]

This is a symptom of one form of database corruption, and the first thing to
try is to make a copy of the database and run compact and repair -- which
clearly hasn't worked for you.

Next, try creating a new, empty database and importing each object from the
old one -- except the table with the autonumber problem. Write code to copy
the records from that table up to the one just before the first problem
record, then copy records starting just after the last problem record.
Restore the problem records manually. Don't worry that their autonumber
fields aren't in sequence -- that is not their purpose.

Make certain you have all the Service Packs and patches for both Access and
the database engine installed. Make certain you do not have multiple users
logged in to the same front end or monolithic database (because that
significantly increases the probability of corruption).

If you just can't salvage it, contact Peter Miller at
http://www.pksolutions.com. He has an outstanding reputation for data
recovery and, unless he has changed his policies, will tell you in advance
how much it will cost you.

Larry Linson
Microsoft Access MVP



red zebra
Guest
 
Posts: n/a
#3: Nov 13 '05

re: autonummering in table gives problems


Thanks for your quick reaction. I made the new database with all the
elements (tables, query's, forms...)
All the records from the other tables are copied (copy and paste from
the original database). There's only one table (the damaged one) where
from i have to copy the files. This table is the only table were the ID
is autonummering. you wrote that i need to write code to copy the
records from this table. Is there another way (copy and paste?) to copy
those records? Writing code is not one of my capebilities.
Can you give me an exemple of that code ? When i have an example, i can
adapt the terms to my database and use it.
Thanks for helping me a lot !
Have a nice weekend



*** Sent via Developersdex http://www.developersdex.com ***
Larry Linson
Guest
 
Posts: n/a
#4: Nov 13 '05

re: autonummering in table gives problems


You should be able to copy and paste the records up to that point, then
manually recreate the "bad" records in the new table, then copy and past the
records follwing the bad records. Then it is likely that your original
sequence of AutoNumber identifications may be regenerated (but don't count
on AutoNumbers to be anything except "unique").

Sometimes I just get into a rut and assume that most everybody has some VBA
and DAO experience. Sorry.

Larry Linson
Microsoft Access MVP

"red zebra" <redzebra@hotmail.com> wrote in message
news:FgVYe.37$Aj4.1772@news.uswest.net...[color=blue]
> Thanks for your quick reaction. I made the new database with all the
> elements (tables, query's, forms...)
> All the records from the other tables are copied (copy and paste from
> the original database). There's only one table (the damaged one) where
> from i have to copy the files. This table is the only table were the ID
> is autonummering. you wrote that i need to write code to copy the
> records from this table. Is there another way (copy and paste?) to copy
> those records? Writing code is not one of my capebilities.
> Can you give me an exemple of that code ? When i have an example, i can
> adapt the terms to my database and use it.
> Thanks for helping me a lot !
> Have a nice weekend
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***[/color]


Closed Thread