473,385 Members | 1,531 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,385 software developers and data experts.

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 5041
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*******************@newssvr21.news.prodigy. 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.Name FROM MsysObjects
WHERE (([Type] = 1) AND ([Name] Not Like "~*") AND ([Name] Not Like
"MSys*"))
ORDER BY MsysObjects.Name;

You could then DoCmd.TransferDatabase 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******************@newssvr14.news.prodigy.c om...
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
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? ...
1
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. ...
2
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...
9
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...
5
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...
0
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...
5
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...
3
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...
6
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.