Getting a list of tables thru SQL

J

jdebeer

On Dev Ashish's site there is a code snippet to get a list of tables
but this ode only shows the actual tables in the mdb. What is the
code to also show the linked tables.

Thanks

jdb



SELECT MsysObjects.Name
FROM MsysObjects
WHERE (((Left$([Name],1))<>"~") AND ((Left$([Name],4))<>"Msys") AND
((MsysObjects.Type)=1))
ORDER BY MsysObjects.Name;
 
M

Marshall Barton

jdebeer said:
On Dev Ashish's site there is a code snippet to get a list of tables
but this ode only shows the actual tables in the mdb. What is the
code to also show the linked tables.

SELECT MsysObjects.Name
FROM MsysObjects
WHERE (((Left$([Name],1))<>"~") AND ((Left$([Name],4))<>"Msys") AND
((MsysObjects.Type)=1))
ORDER BY MsysObjects.Name;


SELECT MsysObjects.Name
FROM MsysObjects
WHEREMsysObjects.Type=6
ORDER BY MsysObjects.Name;
 
J

John de Beer

Thanks very much

jdebeer said:
On Dev Ashish's site there is a code snippet to get a list of tables
but this ode only shows the actual tables in the mdb. What is the
code to also show the linked tables.

SELECT MsysObjects.Name
FROM MsysObjects
WHERE (((Left$([Name],1))<>"~") AND ((Left$([Name],4))<>"Msys") AND
((MsysObjects.Type)=1))
ORDER BY MsysObjects.Name;


SELECT MsysObjects.Name
FROM MsysObjects
WHEREMsysObjects.Type=6
ORDER BY MsysObjects.Name;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top