1,217
社区成员
发帖
与我相关
我的任务
分享
cn.ConnectionString = "provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & app.path & "\racing.mdb;Mode=ReadWrite;Persist Security Info=False"
If cn.State = adStateClosed Then
cn.ConnectionTimeout = 1000
cn.Open conmdb '打开数据库
End If
'这样试试:
With cn
If .State = adStateOpen Then .Close
.ConnectionString = "provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & app.path & "\racing.mdb;Mode=ReadWrite;Persist Security Info=False"
.Open
End With