首页 相关文章 改变ACCESS数据库的密码

改变ACCESS数据库的密码

Public Function ChangeDatabasePassword(DBPath As String, _
newPassword As String, oldPassWord As String) As Boolean

`Usage: Change DatabasePassword
`Parameters: sDBPath: Full Path to Access Database

`newPassword: the password
`oldPassword: the previous password
`returns true on success false otherwise

If Dir(DBPath) = "" Then Exit Function

Dim db As DAO.Database

On Error Resume Next
Set db = OpenDatabase(DBPath, True, False, ";pwd=" & oldPassWord)
If Err.Number 0 Then Exit Function
db....[ 查看全文 ]

2016-02-19 标签:

改变ACCESS数据库的密码的相关文章

手机页面
收藏网站 回到头部