【发布时间】:2014-08-15 16:53:12
【问题描述】:
在运行时,如何在 Access 中获取表中的列列表?我不想要表中的数据,只想要列名和类型。
编辑:我忘了提到我使用的是 C#。
【问题讨论】:
-
Get column names的可能重复
-
tl;博士:
Set db = CurrentDb() Set rs1 = db.OpenRecordset("Table1") Dim fld As DAO.Field For Each fld In rs1.Fields 'do stuff Next -
还可以查看the field object,了解您可以从中获得什么