Dao怎么打开有密码的数据库?
1个回答
展开全部
DAO没人用了吧?多少年了
Private Sub Form_Load()
Dim Dat1 As Database
Dim rs As Recordset
Set Dat1 = OpenDatabase(App.Path & "\db1.mdb", True, False, ";pwd=123")
Set rs = Dat1.OpenRecordset("Select * From TB_Input")
Me.Caption = rs.Fields("材料名称").Value
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询