473,770 Members | 1,905 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Database corrupted error

HELP! My database is suddenly corrupted. My computer was acting funny
(very sluggish) and was shut down. Access had been already been closed down
but computer was acting very slow , so perhaps it was still open. I am now
getting a "The data base ... is corrupted and needs to be repaired" error .
I have made copies of the corrupted database so that I could try to repair
and still have a corrupted copy available. When I try to repair , it says
that it has repaired the file successfully but then it comes up as an
automation error. Then when I try to restart the "repaired " database-
Access crashes.

Also in the directory I have a file with a .ldb extension... so apparently
that wasnt deleted as teh program got corrupted.

PLEASE HELP ... ANY IDEAS???

Jun 25 '06 #1
9 2392
When I repair... the data is there (the tables can be opened) and tehy look
good.... But I get an "automation error" when I run the switchboard


"advance scout" <iv*****@nospam .optonline.net> wrote in message
news:s8******** *****@fe11.lga. ..
HELP! My database is suddenly corrupted. My computer was acting funny
(very sluggish) and was shut down. Access had been already been closed
down but computer was acting very slow , so perhaps it was still open. I
am now getting a "The data base ... is corrupted and needs to be repaired"
error . I have made copies of the corrupted database so that I could try
to repair and still have a corrupted copy available. When I try to repair
, it says that it has repaired the file successfully but then it comes up
as an automation error. Then when I try to restart the "repaired "
database- Access crashes.

Also in the directory I have a file with a .ldb extension... so apparently
that wasnt deleted as teh program got corrupted.

PLEASE HELP ... ANY IDEAS???

Jun 25 '06 #2
1. Create a new (blank) database.

2. Import the tables, or link them if the database is split:
File | Get External

3. Close Access. Make a copy of the mdb file. Open again.

4. Import the other objects (queries, forms, reports, macros, modules.)

5.Set minimal References under Tools | References (from the code window).
For help with references, see:
http://allenbrowne.com/ser-38.html

6. Compile (Debug menu, from the code window).

At step 4, you may find that the database fails while importing a particular
form. If so, note the form, close the database, copy the good one (result of
step 3), and try the import again without that bad form. You may find there
are other forms or reports that are corrupt as well, but the end result of
this process could be a new database that has all the data and most of the
forms and reports. You may then be able to import these last few
forms/reports from a backup copy of the database.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"advance scout" <iv*****@nospam .optonline.net> wrote in message
news:wR******** ******@fe09.lga ...
When I repair... the data is there (the tables can be opened) and tehy
look good.... But I get an "automation error" when I run the switchboard


"advance scout" <iv*****@nospam .optonline.net> wrote in message
news:s8******** *****@fe11.lga. ..
HELP! My database is suddenly corrupted. My computer was acting funny
(very sluggish) and was shut down. Access had been already been closed
down but computer was acting very slow , so perhaps it was still open. I
am now getting a "The data base ... is corrupted and needs to be
repaired" error . I have made copies of the corrupted database so that I
could try to repair and still have a corrupted copy available. When I
try to repair , it says that it has repaired the file successfully but
then it comes up as an automation error. Then when I try to restart the
"repaired " database- Access crashes.

Also in the directory I have a file with a .ldb extension... so
apparently that wasnt deleted as teh program got corrupted.

PLEASE HELP ... ANY IDEAS???

Jun 26 '06 #3
Thanks for the reply Allen- I have been on the road but I will try your
solutions and let you know how I make out


"Allen Browne" <Al*********@Se eSig.Invalid> wrote in message
news:44******** **************@ per-qv1-newsreader-01.iinet.net.au ...
1. Create a new (blank) database.

2. Import the tables, or link them if the database is split:
File | Get External

3. Close Access. Make a copy of the mdb file. Open again.

4. Import the other objects (queries, forms, reports, macros, modules.)

5.Set minimal References under Tools | References (from the code window).
For help with references, see:
http://allenbrowne.com/ser-38.html

6. Compile (Debug menu, from the code window).

At step 4, you may find that the database fails while importing a
particular form. If so, note the form, close the database, copy the good
one (result of step 3), and try the import again without that bad form.
You may find there are other forms or reports that are corrupt as well,
but the end result of this process could be a new database that has all
the data and most of the forms and reports. You may then be able to import
these last few forms/reports from a backup copy of the database.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"advance scout" <iv*****@nospam .optonline.net> wrote in message
news:wR******** ******@fe09.lga ...
When I repair... the data is there (the tables can be opened) and tehy
look good.... But I get an "automation error" when I run the
switchboard


"advance scout" <iv*****@nospam .optonline.net> wrote in message
news:s8******** *****@fe11.lga. ..
HELP! My database is suddenly corrupted. My computer was acting funny
(very sluggish) and was shut down. Access had been already been closed
down but computer was acting very slow , so perhaps it was still open. I
am now getting a "The data base ... is corrupted and needs to be
repaired" error . I have made copies of the corrupted database so that I
could try to repair and still have a corrupted copy available. When I
try to repair , it says that it has repaired the file successfully but
then it comes up as an automation error. Then when I try to restart
the "repaired " database- Access crashes.

Also in the directory I have a file with a .ldb extension... so
apparently that wasnt deleted as teh program got corrupted.

PLEASE HELP ... ANY IDEAS???


Jun 29 '06 #4
I was able to copy and paste tables and I get some data loss but at least I
am able to continue invoicing (Whew.. I am in my busy season)... I will
retry using your suggestions.of importing ... But before I do...any idea
what is causing the "automation error" when I compile. Its always at the
same line in the switchboard class module:

Private Sub Form_Open(Cance l As Integer)
' Minimize the database window and initialize the form.

Dim dbs As Database
Dim rst As Recordset

The Dim dbs As Database is highlighted. Maybe if I could get it past that
point I would be ok.

"Allen Browne" <Al*********@Se eSig.Invalid> wrote in message
news:44******** **************@ per-qv1-newsreader-01.iinet.net.au ...
1. Create a new (blank) database.

2. Import the tables, or link them if the database is split:
File | Get External

3. Close Access. Make a copy of the mdb file. Open again.

4. Import the other objects (queries, forms, reports, macros, modules.)

5.Set minimal References under Tools | References (from the code window).
For help with references, see:
http://allenbrowne.com/ser-38.html

6. Compile (Debug menu, from the code window).

At step 4, you may find that the database fails while importing a
particular form. If so, note the form, close the database, copy the good
one (result of step 3), and try the import again without that bad form.
You may find there are other forms or reports that are corrupt as well,
but the end result of this process could be a new database that has all
the data and most of the forms and reports. You may then be able to import
these last few forms/reports from a backup copy of the database.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"advance scout" <iv*****@nospam .optonline.net> wrote in message
news:wR******** ******@fe09.lga ...
When I repair... the data is there (the tables can be opened) and tehy
look good.... But I get an "automation error" when I run the
switchboard


"advance scout" <iv*****@nospam .optonline.net> wrote in message
news:s8******** *****@fe11.lga. ..
HELP! My database is suddenly corrupted. My computer was acting funny
(very sluggish) and was shut down. Access had been already been closed
down but computer was acting very slow , so perhaps it was still open. I
am now getting a "The data base ... is corrupted and needs to be
repaired" error . I have made copies of the corrupted database so that I
could try to repair and still have a corrupted copy available. When I
try to repair , it says that it has repaired the file successfully but
then it comes up as an automation error. Then when I try to restart
the "repaired " database- Access crashes.

Also in the directory I have a file with a .ldb extension... so
apparently that wasnt deleted as teh program got corrupted.

PLEASE HELP ... ANY IDEAS???


Jun 29 '06 #5
That sounds like a problem with references.

If this is Access 2000 later, in the code window, choose References on the
Tools menu.
Check the box for:
Microsoft DAO 3.6 Library.

More info on references for each version of Access, and how to solve
reference issues:
http://allenbrowne.com/ser-38.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"advance scout" <iv*****@nospam .optonline.net> wrote in message
news:40******** *******@fe10.lg a...
I was able to copy and paste tables and I get some data loss but at least I
am able to continue invoicing (Whew.. I am in my busy season)... I will
retry using your suggestions.of importing ... But before I do...any idea
what is causing the "automation error" when I compile. Its always at the
same line in the switchboard class module:

Private Sub Form_Open(Cance l As Integer)
' Minimize the database window and initialize the form.

Dim dbs As Database
Dim rst As Recordset

The Dim dbs As Database is highlighted. Maybe if I could get it past that
point I would be ok.

Jun 30 '06 #6

"Allen Browne" <Al*********@Se eSig.Invalid> wrote in message
news:44******** *************** @per-qv1-newsreader-01.iinet.net.au ...
That sounds like a problem with references.

If this is Access 2000 later, in the code window, choose References on the
Tools menu.
Check the box for:
Microsoft DAO 3.6 Library.


Access 97- I tried the references ... No good. I still get the automation
error. It did correct the date problem I was having though. But I still
cant get past the compile
Jun 30 '06 #7
The Automation error may mean that Access is unable to resolve the name of
something.

Double-check that nothing on that line (even later on the line) could be
misunderstood.

Decompile a copy of the database by entering something like this at the
command prompt while Access is not running. It is all one line, and include
the quotes:
"c:\Program Files\Microsoft office\office\m saccess.exe" /decompile
"c:\MyPath\MyDa tabase.mdb"

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"advance scout" <iv*****@nospam .optonline.net> wrote in message
news:eL******** *******@fe08.lg a...

"Allen Browne" <Al*********@Se eSig.Invalid> wrote in message
news:44******** *************** @per-qv1-newsreader-01.iinet.net.au ...
That sounds like a problem with references.

If this is Access 2000 later, in the code window, choose References on
the Tools menu.
Check the box for:
Microsoft DAO 3.6 Library.


Access 97- I tried the references ... No good. I still get the
automation error. It did correct the date problem I was having though.
But I still cant get past the compile

Jul 1 '06 #8
My newsgroup server has become unreliable so I dont know if this will post
to the newsgroup...But if it does I want to say thanks Allen...

I got the database working by using your advise.. i.e. importing tables,
queries, forms, modules etc. Found that my "invoice" form was corrupt
....that was the problem... so I used an older version. After I got it
working I split the database into a front and back end and then did append
queries (I had kept invoicing customer susing an older version.)

Works great now... WHEW! I learned a lesson...freque nt backups. The split
database should help too! Thanks a lot!
"advance scout" <iv*****@nospam .optonline.netw rote in message
news:s8******** *****@fe11.lga. ..
HELP! My database is suddenly corrupted. My computer was acting funny
(very sluggish) and was shut down. Access had been already been closed
down but computer was acting very slow , so perhaps it was still open. I
am now getting a "The data base ... is corrupted and needs to be repaired"
error . I have made copies of the corrupted database so that I could try
to repair and still have a corrupted copy available. When I try to repair
, it says that it has repaired the file successfully but then it comes up
as an automation error. Then when I try to restart the "repaired "
database- Access crashes.

Also in the directory I have a file with a .ldb extension... so apparently
that wasnt deleted as teh program got corrupted.

PLEASE HELP ... ANY IDEAS???

Jul 2 '06 #9
Good news! Thanks for sharing.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"advance scout" <iv*****@nospam .optonline.netw rote in message
news:gx******** ******@fe11.lga ...
My newsgroup server has become unreliable so I dont know if this will post
to the newsgroup...But if it does I want to say thanks Allen...

I got the database working by using your advise.. i.e. importing tables,
queries, forms, modules etc. Found that my "invoice" form was corrupt
...that was the problem... so I used an older version. After I got it
working I split the database into a front and back end and then did append
queries (I had kept invoicing customer susing an older version.)

Works great now... WHEW! I learned a lesson...freque nt backups. The split
database should help too! Thanks a lot!
"advance scout" <iv*****@nospam .optonline.netw rote in message
news:s8******** *****@fe11.lga. ..
>HELP! My database is suddenly corrupted. My computer was acting funny
(very sluggish) and was shut down. Access had been already been closed
down but computer was acting very slow , so perhaps it was still open. I
am now getting a "The data base ... is corrupted and needs to be
repaired" error . I have made copies of the corrupted database so that I
could try to repair and still have a corrupted copy available. When I
try to repair , it says that it has repaired the file successfully but
then it comes up as an automation error. Then when I try to restart the
"repaired " database- Access crashes.

Jul 2 '06 #10

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

Similar topics

2
2955
by: Nate | last post by:
Hello, I am trying to recover a SQL Server 7 database from another hard disk drive that has a corrupted Windows 2000 Advanced Server installation. I am not able to repair the corrupted Windows 2000 Advanced Server installation but the file system is intact. I have installed a new copy of SQL Server 7 onto a new hard disk and have used the sp_attach_db system stored procedure to attach the database from the old hard drive into the new...
5
5102
by: Jucius | last post by:
Using Delphi for developing, I get and delete records from an Access Database 2000. Sometimes, It happened 3 times (but not reproductible), the application did not succeed in connecting the database. A table is corrupted and when you compact, this table is deleted with an error -1206 created. I did not find resources on this problem on the web. if somebody can help, I have to solve it by Monday (it is quite HOT !). If somebody can...
14
7144
by: L Mehl | last post by:
I tested a FE/BE application developed in A2000 on a A2002 machine and got this message when exiting the app. Clicking the only available button "OK", exits the application, as intended. The FE is just the mdb, not an mde. FE and BE are in different directories on the same machine. Are there settings, preferably via code, that I can add to stop this error? Thank you for any help.
1
2536
by: WindAndWaves | last post by:
Hi Folks I have a rather corrupted database. I think the MSysAccessStorage table is (partly) gone and therefore the whole database is not working anymore. I have tried: - compact and repair (many times) - importing objects into a new database
3
6773
by: Ken Davis via AccessMonster.com | last post by:
I get this error message when trying to compact and repair my database: (Could not find field "Description"). When I clicked on Help, the error message number comes up as (Error 3799) It's the first time I see this. Help anyone? -- Message posted via http://www.accessmonster.com
47
4544
by: ship | last post by:
Hi We need some advice: We are thinking of upgrading our Access database from Access 2000 to Access 2004. How stable is MS Office 2003? (particularly Access 2003). We are just a small company and this is a big decision for us(!) It's not just the money it's committing to an new version of Access!
5
12519
by: Kamyk | last post by:
Hello all! I have a tough thing to fix. I have a database which has been corrupted. I got the following error messages while trying to open it: The Microsoft Jet database engine stopped the process because you and another user are attempting to change the same data at the same time The database is protected by password, so when I want to open I got the above error message. I cannot import data from this corrupted database into
2
15308
by: Ron St-Pierre | last post by:
We're developing a java app and are using postgres as the database. On our dev server I started the app, closed it, but the java process was still open so I killed it, which caused the above error. I've had to do this in the past but have not had this happen before. I've searched the archives and found a message/reply from Andrew Sullivan about this which implies that it may be more a file system problem. We're using postgresql 7.4.1 on a...
14
5766
by: David Suela Fernández | last post by:
Hi! Is it possible to copy/migrate one database from one postgres server to other copying just the files in /var/lib/postgres/data/ ? I can't use pg_dump because it give me an error. I think than the instalation of postgres is corrupt because it give me a lot of error like "ERROR: relation "pg_catalog.pg_user" does not exist". Thanks,
0
9618
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10259
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10101
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10038
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9906
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7456
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.