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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need a list of column names in a access table

Status
Not open for further replies.

kayek

Programmer
Jun 19, 2003
95
US
To get a list of column names from SQL Server Table "tblMain1" the below SQL code works.

SELECT sysobjects.name,
syscolumns.name AS ColumnName
FROM syscolumns
INNER JOIN sysobjects ON syscolumns.id = sysobjects.id
WHERE sysobjects.name = N'tblMain1'

How can I do the same thing in Access?
 
Is this supposed to be pulling from a specific table? Just wondering, b/c "syscolumns" doesn't sound like a common table name..

Stephen [infinity]
"Jesus saith unto him, I am the way, the truth, and the life:
no man cometh unto the Father, but by me." John 14:6 KJV
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top