Daniel
Do you mean from within cf? If you are only interested in the column names
(and not the datatypes)....
<cfquery name="getColumnList" datasource="dsn" >
Select * from mytable where id = 0
</cfquery>
<cfset tableList = getColumnList.columnList >
There are also some system tables you can query which will give you the
names but the names escape me, have a look inside the database. Its been a
long time since I've used access but I believe there is a setting which you
can enable to view the system tables.
HTH
-----Original Message-----
From: Daniel Farmer [mailto:[EMAIL PROTECTED]
Sent: 29 October 2004 15:26
To: CF-Talk
Subject: Access column names
I saw this question earlier, but I don't think it was answered.
Is there a syntax that you can pass to a MS Access Db to get a list of
column names for a particular table?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF
community.
http://www.houseoffusion.com/banners/view.cfm?bannerid=37
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:182949
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54