473,503 Members | 1,501 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error in Access 2007 Corrupt VBA project

7 New Member
I designed a db in Access 07 and opened it up once in Access 2003. No when I open it up in 07 again I get this message...

"The database cannot be opened because the VBA project contained in it
cannot be read. The database can be opened only if the VBA project is
first deleted. Deleting the VBA project removes all code from modules,
forms and reports"

Is there any way to extract the vba code and modules from the corrupt db? I would really hate to have to rewrite ALL the code over again. If I can get the modules and codes out maybe I can fix what might be wrong.
Feb 21 '08 #1
2 4033
mshmyob
904 Recognized Expert Contributor
Access 2003 cannot read an Access 2007 file - it has a new extension of .aacdb.

I assume you created it in Access 2007 but saved it in the 2003 format.

I designed a db in Access 07 and opened it up once in Access 2003. No when I open it up in 07 again I get this message...

"The database cannot be opened because the VBA project contained in it
cannot be read. The database can be opened only if the VBA project is
first deleted. Deleting the VBA project removes all code from modules,
forms and reports"

Is there any way to extract the vba code and modules from the corrupt db? I would really hate to have to rewrite ALL the code over again. If I can get the modules and codes out maybe I can fix what might be wrong.
Feb 21 '08 #2
Megalog
378 Recognized Expert Contributor
Did you try starting a new db in Access 2007, and then importing what you can from the corrupt copy via 'External Data' > 'Import' > 'Access' ?

Or if that doesnt work.. then maybe open it up again with an Access 2003 copy, and then copy out the code into notepad or something....
Feb 21 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
6786
by: ishwarjoshi | last post by:
I am in the process of upgrading an old Access ADP/SQL 2000 App to Access 2007 ADP/SQL 2005. There are a lot of buttons in the Access form which are calling Access Macros, the Macros call...
2
3779
by: ARC | last post by:
Just curious if anyone is having issues with Acc 2007 once the number of objects and complexity increases? I have a fairly large app, with many linked tables, 100's of forms, queries, reports, and...
1
4449
by: MsfStl | last post by:
I appear to have some sort of corrupt object in my Access 2007 db. Anytime, I leave a Design view of a form the db crashes. It then tries to send MS an error message and then compact and repair...
2
1653
by: anthony | last post by:
I have an old database which started out life in the Access 2 days! It's full of lots of stuff which I'm not convinced is relevant any longer. Would a good way forward be to create a new, blank...
3
4861
by: anthony | last post by:
I've been busy converting an existing 2003 database into 2007 by dint of creating a new accdb database and importing the objects into it. Everything went smoothly and all the objects imported...
1
7067
by: myipmike | last post by:
Hi there, I have an app that produces labels and which runs fine under Access 2000, 2002 and 2003. The compiled 2002 .mde version runs fine under Access 2007 but only sometimes ! i.e. under XP...
4
2536
by: Milan Mehta | last post by:
I am new to Access. I have developed an application in Access 2007. I have kept all the tables in a MDB file and all the forms in a seperate accdb file. All the tables of MDF file is link in the...
7
23844
by: preeny8 | last post by:
Hi there, I recently updated to Access 2007, and I'm getting a couple of errors that i'm not sure how to deal with. I worked with a lot of databases in Access 2003 (.mdb), and for some reason...
3
3386
by: philqw78 | last post by:
Using quite a simple Access DBase across the network I occasionally get this error: The dbase is split with front ends on user's PC's and a back end on the shared drive. This has happened to me...
0
7203
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
7089
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
7282
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,...
0
7339
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...
1
6995
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
5581
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,...
1
5017
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...
0
3168
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...
0
3157
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.