VB如何打开设有密码的ACCESS数据库?
原代码可以连接打开无密码的ACCESS,如下:PublicconAsNewADODB.ConnectionPublicrstAsNewADODB.RecordsetPub...
原代码可以连接打开无密码的ACCESS,如下:
Public con As New ADODB.Connection
Public rst As New ADODB.Recordset
Public CS As String
Sub main()
CS = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\dxs.mdb;Persist Security Info=False"
con.Open CS
应如何改才能打开有密码的ACCESS呢? 展开
Public con As New ADODB.Connection
Public rst As New ADODB.Recordset
Public CS As String
Sub main()
CS = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\dxs.mdb;Persist Security Info=False"
con.Open CS
应如何改才能打开有密码的ACCESS呢? 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询