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

Linked Table Manager says VBA project cannot be read

Hello - I have an issue with Access after upgrading to 2010. It seems to impact all databases and they are working for others.

Whenever I attempt to enter the "Linked Table Manager" either via the External Data tab or by right clicking on a table and selecting "Linked Table Manager" I get the following error...

"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. Your should backup your database before attempting to open the database and delete the VBA project.

To create a backup copy, click Cancel and then make a backup copy of your database. To open the database and delete the VBA project without creating a backup copy, click OK."

Ok leads to "Cannot update. Database or object is read only."

then

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

I've tried reinstalling access and this error occurs even with brand new databases created with access 2010 that do not contain any macros. Also Visual Basic opens fine.

Any ideas?
Mar 21 '14 #1
8 2732
zmbd
5,501 Expert Mod 4TB
oh.. so sorry to hear that this is happening to you.

From what version did you upgrade from?

IF ACC2003 then, make a new database in either the mdb or accdb format (be aware the new format strips out userlevel security).

Import your old objects into the new database using the external data.

Do this for the backend too.

BEST OF LUCK
let us know how things go!
Mar 25 '14 #2
Thanks for the reply zmbd, sadly no luck.

It was 2003 I was on previously.
Created a new mdb, called back.mdb, it had one table inside called back1
Created another new mdb, called front.mdb. Imported the back.mdb as a linked table (this worked) and could see the content of the back1 table.
Went to Linked table manager for back1. Same error as above.
Mar 31 '14 #3
zmbd
5,501 Expert Mod 4TB
I'm not following you...

Hopefully you did the following:
1) ACC2010 - Create new MDB file
2) Rename back.mbd
3) Import, not as link, but as data and structure all tables
3a) at this time do not import anything except the tables.
4) Close all files
5) ACC2010 - Create new MDB file
6) Rename Front.mbd
7) Copy all local tables, queries, forms, and modules.
8) Close all files and program
9) Reopen ACC2010 and the new Front.mdb
10) External data ribbon, import, and link to the new back.mdb tables.

At this point you should be good.
If you have forms, queries, or VBA modules in the original back end, I would reconsider this design. The backend should ideally only store unchanging queries and table data, no forms, no code modules.

If this doesn't fix the issue, then try again using the ACCDB format. It will strip your user level security; however, that may the price you have to pay to get your data back.
Mar 31 '14 #4
zmbd
5,501 Expert Mod 4TB
Two more questions:
Did you do a "clean install" of the new office or did you just do the in-place upgrade and what version of windows are you working with?
Mar 31 '14 #5
Hi Zmbd and thanks again,

followed your process and made it through to the end; and had a copy of the database which at least gets me past the initial issue.

Sadly going to Linked Table Manager still gives the same error, so your 10 step guide is the only way to change back end location.

It was a clean install of access 2010 and
OS Name: Microsoft Windows 7 Enterprise
OS Version: 6.1.7601 Service Pack 1 Build 7601
Apr 7 '14 #6
zmbd
5,501 Expert Mod 4TB
hmm...
Check the folder permissions.
If the PC/User you're working with doesn't have read/Write/Modify rights to the folder this can also give you issues; however, I wouldn't expect this to be the issue - but it's the weird things that will bite you...
Apr 7 '14 #7
Found it finally!

http://support.microsoft.com/kb/2581301

Upgrading to SP2 fixed it.
Oct 29 '14 #8
zmbd
5,501 Expert Mod 4TB
I'm glad you found the solution.
I should have also inquired which 32/64BIT-installation you had upgraded to... as you discovered, in the 64BIT installations there was/is a known bug.

Thnx for bringing this back into the light - I'm sure you just helped at least a dozen people!
Oct 29 '14 #9

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

Similar topics

2
by: Bruce | last post by:
Greetings! After finally figuring out that the Linked Table manager is no longer an add-in in Access 2003 I now discover that it does not display any of my linked tables in the 'select linked...
2
by: Ian Davies | last post by:
Does anyone know how to open the linked table manager using VBA code behind a comand button in Access2000 Ian
2
by: Wayne | last post by:
I've just performed a reformat and reinstalled Access 2000 and 2003 and as usual the linked table manager in Access 2003 is broken ie. it doesn't show any tables. I've gone through the process of...
1
by: steph | last post by:
Hi, I've got a problem. (Microsoft Access 2002 SP3) One of our users found a problem in a when accessing a form with a subform: when starting it access crashes leaving the message...
3
by: Parasyke | last post by:
Can anyone guide me through changing the location of my linked tables through the Linked Table Manager? (MS-Access 2000) Here's what I've done: I'm in the front-end application on a split...
2
nico5038
by: nico5038 | last post by:
Access 2007 Linkedtable manager refuses to relink tables having a field with the "Attachment" datatype. Problem: When placing a split database in another folder, the Linked table manager should...
1
by: franc sutherland | last post by:
Hello, I have a client who uses Access 97, but does not have the Linked Table Manager. The system is split into front and back end. Is it possible to install the Linked Table Manager into...
1
prn
by: prn | last post by:
Hi folks, Here's a weird one. We have a fair number of Access applications where the front end sits on a user's desk somewhere, but the data sits on a SQL server. We're in the process of retiring...
5
stonward
by: stonward | last post by:
Good day All, I've made a very simple hardware tracking system that the company I work for now want to roll out company wide (gulp). I'm using Access 2010 (I'm used to 2007) and a 64bit machine;...
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: 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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
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
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,...

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.