PC Review


Reply
Thread Tools Rate Thread

cannot open database because VBA project cannot be read

 
 
=?Utf-8?B?QWNjZXNzTWFu?=
Guest
Posts: n/a
 
      15th Nov 2007
Without any provocation that I can think of, I got the message above after
opening my database this morning. The message further states that the only
way that the database can be opened is to delete the VBA project and all code
from modules, forms, and reports. This is a highly undesirable option. Yes,
I do have backups I can resort to, but I'd rather not if there is a
workaround.

The database has a meager bit of VBA associated with some forms and reports,
and I hadn't touched any of it for some time. Has anybody seen this error?
Access help was not helpful.
 
Reply With Quote
 
 
 
 
Tony Toews [MVP]
Guest
Posts: n/a
 
      15th Nov 2007
AccessMan <(E-Mail Removed)> wrote:

>Without any provocation that I can think of, I got the message above after
>opening my database this morning. The message further states that the only
>way that the database can be opened is to delete the VBA project and all code
>from modules, forms, and reports. This is a highly undesirable option. Yes,
>I do have backups I can resort to, but I'd rather not if there is a
>workaround.


I don't ever recall seeing this particular message although my memory
isn't perfect.

1) Make a copy

2) Try importing all the objects into a new database

3) Try a decompile. http://www.granite.ab.ca/access/decompile.htm

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
 
Reply With Quote
 
=?Utf-8?B?QWNjZXNzTWFu?=
Guest
Posts: n/a
 
      15th Nov 2007
Tony:

Thanks for the response. Just to clarify, do you mean for me to import the
objects from the troubled database (or a copy of it) into a blank one? Does
the fact that the troubled database had not been compiled change anything?

"Tony Toews [MVP]" wrote:

> AccessMan <(E-Mail Removed)> wrote:
>
> >Without any provocation that I can think of, I got the message above after
> >opening my database this morning. The message further states that the only
> >way that the database can be opened is to delete the VBA project and all code
> >from modules, forms, and reports. This is a highly undesirable option. Yes,
> >I do have backups I can resort to, but I'd rather not if there is a
> >workaround.

>
> I don't ever recall seeing this particular message although my memory
> isn't perfect.
>
> 1) Make a copy
>
> 2) Try importing all the objects into a new database
>
> 3) Try a decompile. http://www.granite.ab.ca/access/decompile.htm
>
> Tony
> --
> Tony Toews, Microsoft Access MVP
> Please respond only in the newsgroups so that others can
> read the entire thread of messages.
> Microsoft Access Links, Hints, Tips & Accounting Systems at
> http://www.granite.ab.ca/accsmstr.htm
> Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
>

 
Reply With Quote
 
Tony Toews [MVP]
Guest
Posts: n/a
 
      15th Nov 2007
AccessMan <(E-Mail Removed)> wrote:

>Thanks for the response. Just to clarify, do you mean for me to import the
>objects from the troubled database (or a copy of it) into a blank one?


Yes.

>Does
>the fact that the troubled database had not been compiled change anything?


No.

Tony

--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
 
Reply With Quote
 
=?Utf-8?B?QWNjZXNzTWFu?=
Guest
Posts: n/a
 
      15th Nov 2007
Sadly, I encountered the same error message after initiating the import.

"Tony Toews [MVP]" wrote:

> AccessMan <(E-Mail Removed)> wrote:
>
> >Thanks for the response. Just to clarify, do you mean for me to import the
> >objects from the troubled database (or a copy of it) into a blank one?

>
> Yes.
>
> >Does
> >the fact that the troubled database had not been compiled change anything?

>
> No.
>
> Tony
>
> --
> Tony Toews, Microsoft Access MVP
> Please respond only in the newsgroups so that others can
> read the entire thread of messages.
> Microsoft Access Links, Hints, Tips & Accounting Systems at
> http://www.granite.ab.ca/accsmstr.htm
> Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
>

 
Reply With Quote
 
New Member
Join Date: Mar 2009
Posts: 4
 
      16th Mar 2010
I have similar problem. Would it work if I keep all the tables and delete forms and reports etc. I will create new forms and reports.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Open MS Project From Excel & read Task Properties List =?Utf-8?B?TVZQIFdhbm5hYmU=?= Microsoft Excel Programming 8 21st Nov 2007 02:27 PM
How to Check Database's Read-Only Attribute After Database is Open =?Utf-8?B?UGFwdXR4aQ==?= Microsoft Access 1 18th Sep 2007 12:45 AM
Cannot open some project database tables and views =?Utf-8?B?Z2Uydg==?= Microsoft Access 5 19th Oct 2004 05:39 PM
searching for open database project... ozgur develioglu Microsoft C# .NET 0 26th Aug 2003 07:46 AM
open database project.. ozgur develioglu Microsoft ADO .NET 0 26th Aug 2003 07:46 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:08 AM.