combo to show list of tables

M

mhmaid

SELECT DISTINCT MSysObjects.Name FROM MSysObjects;

how if i want to get only tables? any help
 
R

Rob Parker

Add "WHERE Type = 1" to your SQL.

To exclude the system tables, use:

SELECT DISTINCT MSysObjects.Name FROM MSysObjects WHERE Name Not Like
"msys*" AND Type=1;

HTH,

Rob
 
M

mhmaid

thanks to both of you for respose and help . tested both and it is working
perfect.
thanks again.
 
Top