2个回答
推荐于2016-04-09
展开全部
Dim TableSet As ADODB.Recordset
Dim Gconnection As ADODB.Connection
Sub getTableName()
Set Gconnection = New ADODB.Connection
Gconnection.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Redeem.mdb;Persist Security Info=False"
Set TableSet = Gconnection.OpenSchema(adSchemaTables, Array(Empty, Empty, Empty, Empty))
Do Until TableSet.EOF
List1.AddItem TableSet!table_name
TableSet.MoveNext
Loop
End Sub
Private Sub Form_Load()
getTableName
End Sub
Dim Gconnection As ADODB.Connection
Sub getTableName()
Set Gconnection = New ADODB.Connection
Gconnection.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Redeem.mdb;Persist Security Info=False"
Set TableSet = Gconnection.OpenSchema(adSchemaTables, Array(Empty, Empty, Empty, Empty))
Do Until TableSet.EOF
List1.AddItem TableSet!table_name
TableSet.MoveNext
Loop
End Sub
Private Sub Form_Load()
getTableName
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询