'引用DAOdim Tb as tablesdef,cn as databaseset cn =opendatabase(T:\我的程序\MyProgDelphi\Sound\sounds.mdb")For each Tb in cn.tablesdefs msgbox tb.namenext
[此贴子已经被作者于2006-3-31 23:31:22编辑过]
楼上的厉害,我对 DAO 不熟,只会用 ADO,更正一下你的单词拼错了:
Dim tb As TableDef, cn As DatabaseSet cn = opendatabase("T:\我的程序\MyProgDelphi\Sound\sounds.mdb")For Each tb In cn.TableDefs MsgBox tb.NameNext