'列出数据中的所有表L
sub opendatabase( datapath as string)
dim link1 as new adodb.connection
dim biaoming as new adodb.recordset
link1.open "provider = microsoft.jet.oledb.4.0;data source=" & datapath
set biaoming = link1.openschema(adschemacolumns) '创建记录集。
tablename = ""
do while not biaoming.eof
if biaoming("table_name") <> tablename then ' 列出表名
tablename = biaoming("table_name")
me.listview1.listitems.add,,tablename
end if
biaoming.movenext
loop
set biaoming = nothing
end sub