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

SQL statement for listing field headings in a table? (Access 97)

Status
Not open for further replies.

TimeTraveler

IS-IT--Management
Nov 20, 2001
99
US
I posted this question in ASNI SQL and was instructed to post here instead.

What is the SQL statement to list the column names of a table?

I've poured through SQL Unleashed, and Microsoft KB and Google, as well Tek-Tips FAQ sections and posts. The only thing I saw was page describing some VB Module to include in the database, but really no instructions on its use, despite a 'usage:' line in its comments.

I refuse to believe that Access 97 cannot perform this simple type of query that's provided for in a 30-year old non-SQL C-Tree database.

Visit
 
this is what we use in SQL Server...

SELECT Column_Name FROM Information_Schema.Columns
WHERE Table_Name = 'yourtablename'

not sure of how its done in MS Access...

-DNG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top