473,395 Members | 2,783 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

autonummering in table gives problems

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

Nov 13 '05 #1
3 1437
"red zebra" <in**@maldex.be> wrote
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 ?


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

Nov 13 '05 #2
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 ***
Nov 13 '05 #3
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" <re******@hotmail.com> wrote in message
news:Fg***************@news.uswest.net...
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 ***

Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Chris | last post by:
I'm having two general problems trying to do a JOIN. I have a table with three fields {Code, Date, Amount}. Code+Date is a unique key. I'm trying to get a rowset with 1) one row for each unique...
7
by: Rick Caborn | last post by:
Does anyone know of a way to execute sql code from a dynamically built text field? Before beginning, let me state that I know this db architecture is built solely for frustration and I hope to...
7
by: Nicolae Fieraru | last post by:
Hi All, I have a table tblProducts where I have four fields:\ Index, ProductName, EnterDate (as Date/Time - Medium Date), PurchaseDate (Date/Time - Medium Date) The EnterDate is automatically...
0
by: Andreas Håkansson | last post by:
Hi, I'm trying to implement a 32bit Table based CRC caluclator based on the guidelines in this http://thorkildsen.no/faqsys/docs/crc.txt document. However I have run into a small "problem"...
2
by: bardo | last post by:
I don't know if there is a solution to this question, but I am hoping there is. What I would like to know is the follow. I made thru Access a database with 1 tablel having a primary key (column...
5
by: tshad | last post by:
I have been trying to figure out what the Datagrid is doing to create its formatting. I found that some of my Datagrids have a 3D type of border and sometime it has a straight line. I finally...
12
by: shafiqrao | last post by:
Hello everyone, I have a script that runs in IE great, but in firefox it has problems. I understand that there are some objects that are accessed differently in IE and Mozilla. Can anybody let...
15
by: Bexm | last post by:
Hello I have searched through this forum and it seems some people are having similar problems to me but none of the fixes are fixing mine..! :( I have a table in my database that has two xml...
0
by: imusion | last post by:
Hi, I have 2 servers each running AIX and both have a DB2 database setup on them. I'm building a news management application and in our setup we need to have a staging and production setup. So...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.