473,414 Members | 1,609 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,414 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 2734
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: 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
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
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...

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.