Solved

MS Access Linked Tables

Posted on 2014-03-12
4
845 Views
Last Modified: 2014-03-12
See attached.

2 questions

(1) Note the table Customer. I'm guessing that the arrow and green ball to the left of table name mean linked to something else. How can I determine what "something else" is?

(2) If I "open" the table, it takes quite a while and it looks like what is there is NOT all the fields in the target table, Does this "link" have to be updated if other daya is added to the "source" table? If so, how do I do that?

Thanks
linked-access-tables.jpg
0
Comment
Question by:Richard Korts
4 Comments
 
LVL 34

Accepted Solution

by:
PatHartman earned 300 total points
Comment Utility
The globe indicates an ODBC connection.  If you leave your mouse pointer over the table name, you will see the connection string which tells you what server it is connected to.  You could query the MSysObjects table.  The query below selects all tables whether they are linked or not.  Change the selection criteria to suit yourself.

SELECT MSysObjects.Connect, MSysObjects.Database, MSysObjects.ForeignName, MSysObjects.Name, MSysObjects.Type
FROM MSysObjects
WHERE (((MSysObjects.Name) Not Like "MSys*") AND ((MSysObjects.Type)=1 Or (MSysObjects.Type)=4 Or (MSysObjects.Type)=6))
ORDER BY MSysObjects.Connect, MSysObjects.Database, MSysObjects.ForeignName, MSysObjects.Name;

Open in new window


When you make structural changes to a linked ODBC table, Access doesn't always "see" the changes.  Sometimes you will receive an error message but not always so best practice is to relink any time you make a schema change to a linked table.
0
 
LVL 20

Assisted Solution

by:GrahamMandeno
GrahamMandeno earned 200 total points
Comment Utility
The icon indicates it is a linked table from an ODBC source.  Hovering the mouse over it may give you some information.  If you need more, go to the Immediate Window (Ctrl-G) and type:
?CurrentDb.TableDefs("Customer").Connect
and then
?CurrentDb.TableDefs("Customer").SourceTableName

These commands will display the connect string (which gives the type and location of the external database) and the name of the source table in that database.

I'm not sure what you mean by "NOT all the fields in the target table".  You could try refreshing the link:

CurrentDb.TableDefs("Customer").RefreshLink

Best wishes,
Graham Mandeno [Access MVP 1996-2014]
0
 

Author Comment

by:Richard Korts
Comment Utility
How do you relink or refresh the link?

Thanks
0
 
LVL 84
Comment Utility
How do you relink or refresh the link?
You use the Linked TAble Manager, or you write code to refresh/recreate the links.

Looks like you're using 2003, so you'd find that on Tools - Database Utilities.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now