With Cnn
If .State = 1 Then .Close
.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" _
& "Persist Security Info=False;" _
& "Data Source=" & 数据库名称路径
.Open
End With
If .State = 1 Then .Close
.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" _
& "Persist Security Info=False;" _
& "Data Source=" & 数据库名称路径
.Open
End With
不需要注册,直接接可以打开了。
你是不是没有引用ado?
[email protected]