Office中国论坛/Access中国论坛
标题:
怎样获取表中字段的名称?
[打印本页]
作者:
msf
时间:
2004-7-13 07:57
标题:
怎样获取表中字段的名称?
代码怎样写?
作者:
zhanguoru
时间:
2004-7-13 16:20
Dim DB As Database
Dim Tdf As TableDef
Dim i As Long
Set DB = CurrentDb()
Set Tdf = DB.TableDefs("資料表名")
For i = 0 To Tdf.Fields.Count - 1
MsgBox (Tdf.Fields(i).Name)
Next i
作者:
boyhan
时间:
2004-7-13 17:25
谢!
欢迎光临 Office中国论坛/Access中国论坛 (http://www.office-cn.net/)
Powered by Discuz! X3.3