感谢小铺中的老顽童大大提供的方法

Dim DbFile, DBPath, Conn, Rs
DbFile="Db.mdb"
Set conn = Server.CreateObject("ADODB.Connection")
DBPath = Server.MapPath(DbFile)
Conn.open "Driver={Microsoft Access Driver (*.mdb)}; Dbq=" & DBPath
Const adSchemaTables = 20
Set Rs = Conn.OpenSchema(adSchemaTables,array(empty,empty,empty,"Table"))
If Not(rs.BOF And rs.EOF) Then
rs.MoveFirst
For y = 1 to rs.RecordCount
    Response.Write Rs("Table_Name") & ""
    Rs.MoveNext
Next
Rs.Close
Set Rs = Nothing
Conn.Close
Set Conn = Nothing
 
posted on 2008-06-14 11:43  topcat  阅读(355)  评论(0编辑  收藏  举报