473,379 Members | 1,544 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes and contribute your articles to a community of 473,379 developers and data experts.

Access 2007 Linked Table Manager not working correct...

nico5038
3,080 Expert 2GB
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 be used to relink the tables. The Linkedtable manager does however refuse to relink tables having an "Attachment" datatype field.

Symptoms:
Open the Linkedtable manager and select a linked table with an "Attachment" datatype field. Now try to relink the table to another folder. Access will throw an error "Invalid path" when the "old" path doesn't exist, or refuse to relink when the path does exist.

Cause:
The systemtable MSysObjects holds a reference to a "MSysComplexType" with the old path. This reference isn't removed when the table with the "Attachment" datatype is deleted.

Resolution:
To get the table relinked there are two options:
  1. Remove the "Attachment" datatype field, relink and add the field again. This is only an option for "empty" or nearly empty tables. An additional problem can be the optionally added libraries in the original database.
  2. The creation of a new database to get an empty MSysObject, the creation of a new link to the table(s) with the "Attachment" datatype field(s) and finally the import of all other database objects (except for the MSys. tables and the already linked table(s).
Steps to move a database holding tables with an "Attachment" datatype field:
  1. Place all files in the new folder.
  2. Change the name of the frontend database e.g. by appending "Old" before the ".accdb"
  3. Start MS Access 2007 and create a new database with the original name in the proper location.
  4. Open the new database and directly close the default "Table1"
  5. Click on "All tables" in the NavigationPane and chose "Category navigation / Objecttype"
  6. Select "External data / Import / Access" and chose the option "Link...."
  7. Navigate with the button [Browse] to the Backend database and press [Open]
  8. Press [OK], select only the table(s) with the "Attachment" datatype field(s) and press [OK]
  9. Chose "External data / Import / Access"
  10. Navigate with the [Browse] button to the "Old" database and select the "Import..." option.
  11. Press [OK].
  12. On "Import Objects" window press "Select All" for every object tab. (There are six!)
  13. Caution: On the "Tables" tab the "MSys..." tables and the table(s) with the "Attachment" datatype field(s) must be deselected. (Click on them to get a white background)
  14. Close the "Import Objects" window and go to "Database tools / Database tools / Linkedtable manager"
  15. Press [Select All] and remove the checkmarks for tables not in the backend database.
  16. Select "Always ask for new location" (bottom left) and press [OK]
  17. Select the backend database and press [Open]
  18. Close the Linkedtable manager.
  19. The database is now ready for use.
When there are references to move, use this function in the "Old" database:

Expand|Select|Wrap|Line Numbers
  1.  Function fncShowReferences()
  2. '-----------------------------------------------------------
  3. ' Input       : None
  4. ' Target      : Generating function to create the references in another database
  5. ' Created By  : Nico Altink 28/oct/2007
  6. ' Last changed: Nico Altink 28/oct/2007
  7. '-----------------------------------------------------------
  8. Dim ref As Reference
  9.  
  10. Debug.Print "Function fncCreateReferences()"
  11. Debug.Print "' Skip errors for available references"
  12. Debug.Print "On Error resume next"
  13.  
  14. For Each ref In Application.References
  15.    ' Skip the builtin references
  16.    If Not ref.BuiltIn Then
  17.       Debug.Print "Application.References.AddFromFile (""" & ref.FullPath & """)"
  18.    End If
  19. Next
  20.  
  21. Debug.Print "End Function"
  22.  
  23. End Function    
  24.  
When this function is executed it will create a function in the Immediate window to place all references. Copy/Paste this into a module of the new frontend database and Run (F5) the function.
Oct 28 '07 #1
2 15571
Nice article. Here is one more way so that you can get rid from this error Check your DSN settings and make sure you can connect there. Another thing to check is ownership and permissions on the other tables. Access won't let you link to or display tables you don't have permissions on. Use another tool on that
machine (like Query Analyzer) to test to see if it's a connection
string or permissions problem. Or it may be database corruption so use access repair utility

Thanks
May 30 '08 #2
Thanks for this post, i have a very similar issue with copying my access dbs and getting stuck on an invalid path which I can only find to be stored in MSysObjects.

I'll try your solution and post if it works for others who have a similar issue.
Apr 18 '10 #3

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: Tom | last post by:
Im beginning to dislike Access 2003. I need to update the links on some SQL tables and my linked table manager is empty. Can anyone instruct me on how to populate this??? Thanx Tom
0
by: andyk | last post by:
I have a database on a network drive, that needs to be used by various people throughout the state on their laptops when their laptops are not connected to the network. What I have set up so far is...
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...
1
by: tbeer | last post by:
Hello. I have created a 2007 database to help organize a golf outing event which requires the collection and tracking of a lot of linked data. Everything in my dbase is linked to my Main Business...
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: 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
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.