Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Linked Table Confirmation

Status
Not open for further replies.

ChrisNorris

Programmer
Sep 3, 2001
7
0
0
AU
I am listing all the tables in a selected Access database using VB.

When I add these tables to a list box I need to know if the table is a linked table or stored in the selected database.

I use the Containers object to loop through the tables but cannot find a command to check if the table is linked or not.

Any help would be apreciated
 
Hi!

You can open this query:

SELECT MSysObjects.Name AS [Table Name], IIf([Type]=1,'Stored ','Linked') AS [Table Type]
FROM MSysObjects
WHERE MSysObjects.Name Not Like 'MSys*' AND (MSysObjects.Type=1 Or MSysObjects.Type=6);


Table MSysObjects is Access system table. You can descry it after checking <DB Menu bar>;<Tools>;<View>;<System objects> = True

Aivars


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top