8
8020
I have a bit of code to change users passwords that works perfectly until I
use a different workgroup or even move the workgroup that works to a
different location! What am I doing wrong? Any ideas appreciated (Access03):
usrx = Me!Combo8
strOldPassword = ""
strNewPassword = Me!Text14
Dim wrk As DAO.Workspace
Dim usr As DAO.User
Set wrk = DBEngine(0)
Set usr = wrk.Users(usrx)
usr.NewPassword strOldPassword, strNewPassword
Set usr = Nothing
Set wrk = Nothing
use a different workgroup or even move the workgroup that works to a
different location! What am I doing wrong? Any ideas appreciated (Access03):
usrx = Me!Combo8
strOldPassword = ""
strNewPassword = Me!Text14
Dim wrk As DAO.Workspace
Dim usr As DAO.User
Set wrk = DBEngine(0)
Set usr = wrk.Users(usrx)
usr.NewPassword strOldPassword, strNewPassword
Set usr = Nothing
Set wrk = Nothing