473,791 Members | 3,216 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VBA Project corrupted - How to recover?

I cannot open my Access 2003 database - I receive this error:

"The Visual Basic for Applications Project in the database is corrupt."

I understand that sudden and inexplicable failures like this are to be
expected, so I have a backup.

I was able to get to the database window and can export individual tables
and queries - but is there a way to do this in a batch, rather than one by
one? The database has *a lot* of tables and queries.

Are there other ways to recover a database in this condition?

Thanks in advance!

Nov 13 '05 #1
3 5064
Are you able to make a new (blank) database, and import the existing tables?

General suggestions for recovering corruption:
http://members.iinet.net.au/~allenbrowne/ser-47.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.

"deko" <ww************ *************** ****@nospam.com > wrote in message
news:ts******** ***********@new ssvr21.news.pro digy.com...
I cannot open my Access 2003 database - I receive this error:

"The Visual Basic for Applications Project in the database is corrupt."

I understand that sudden and inexplicable failures like this are to be
expected, so I have a backup.

I was able to get to the database window and can export individual tables
and queries - but is there a way to do this in a batch, rather than one by
one? The database has *a lot* of tables and queries.

Are there other ways to recover a database in this condition?

Thanks in advance!

Nov 13 '05 #2
> Are you able to make a new (blank) database, and import the existing
tables?

No - I can only export (from the corrupted mdb). If I try to import, I get
an error. I looked at that link - I think the problem may have been
power-related.
Nov 13 '05 #3
Okay. It is possible to get a list of all the local tables in the database:
SELECT MsysObjects.Nam e FROM MsysObjects
WHERE (([Type] = 1) AND ([Name] Not Like "~*") AND ([Name] Not Like
"MSys*"))
ORDER BY MsysObjects.Nam e;

You could then DoCmd.TransferD atabase to export them.

However, I would expect that process to fail as soon as it reaches one of
the corrupted tables/indexes.

When you reach a table that won't export, you could try deleting all the
relations and indexes.

You may also want to try the undocumented SaveAsText. Once you get the table
out to a text file, use LoadFromText to get it into the new 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.

"deko" <ww************ *************** ****@nospam.com > wrote in message
news:%S******** **********@news svr14.news.prod igy.com...
Are you able to make a new (blank) database, and import the existing

tables?

No - I can only export (from the corrupted mdb). If I try to import, I
get
an error. I looked at that link - I think the problem may have been
power-related.

Nov 13 '05 #4

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

Similar topics

2
5251
by: jason | last post by:
Need to recover from a corrupted log file. The database in Enterprise Manager shows the database as corrupt. Using sp_Attach_db produces a corrupt log message. Any way to recover the data? Thanks
1
6671
by: WKC | last post by:
Recently, one of our database's mdf and ldf was corrupted. We were able to bring back the database with the capability of importing and querying the data. However, the data is not the full list. Some of the data are still missing because the tables we want still has sone 'chain mis linkage' error when we did a DBCC checkdb/checktable. DBCC couldn't fix those errors either. We're pretty sure that there are some data still burry under the...
2
2956
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...
9
5013
by: Matthew T. O'Connor | last post by:
Hello, pg_dump started failing for one of my databases, so I looked in to it and it appears that I have some corrupted data or something. I assume this is related to a failed hard disk that was part of the linux software raid mirror. I backed up the entire data directory, and did a pg_resetxlog, but that didn't help. I found the specific row that seems to be the problem, but I can't delete it. Anyway, I don't know how to fix this,...
5
4616
by: ruben20 | last post by:
Hi: Is there any way to recover data from a corrupted table? I can only run SELECTs on certain WHERE conditions. I cannot vacuum, pg_dump, I've deleted the indexes and try to reindex, always get error: ERROR: could not access status of transaction 4244329 DETAIL: could not open file "/usr/local/pgsql/data/pg_clog/0004": No
0
1126
by: rui.pacheco | last post by:
Hi all One of MySQL servers went down the hard way after a power failure. The server was running MySQL 3.23.* and after bringing it back up I realised that one of the tables was corrupted. I tried to run "repair table" on it, but since it was an ISAM table it didn't work. After trying some other things I decided to recover the database from a backup, but I lost 5 records. I have the old database (the one that crashed) on the side and I...
5
1835
by: jeffreywgraham | last post by:
Laptop lost power while on an airplane. No big deal, but the Access database that I was working on at the time now won't open. I've tried to repair it, I always get the error message about the file being corrupted. I can, however, open tables and queries through Excel, so the data is intact. What I'm mainly hoping to get back is the VBA code I wrote while my flight was delayed...any suggestions Many thanks in advance
3
1296
by: NEMA | last post by:
Dear all, i have a problem on the sln file. After i have a error while coding, i close the VS studio and find the sln file to open the project. But i discover that the sln file become 0kb and i couldnt open it. However, the .h and .cpp are still there.
6
3367
by: =?Utf-8?B?Qm8gTWNJbHZhaW4=?= | last post by:
I have a installation package which installs ok when setup.exe is used, but if I try to install via msiexec, I get an error "This installation package could not be opened. Verify that the package exists..." In partidular, I need to be able to uninstall this package unattended from the command line, any suggestions will be appreciated. The version of msiexec.exe is 3.1.4000.1823, msi.dll is 3.1.4000.4039
0
9669
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
9517
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
10428
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
10207
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
10156
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,...
1
7537
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
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5435
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3718
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.