Similar to this posting thread705-441707 you haven't assigned a password for a user when you set them up how do you force them to go to the change password form and enter one the first time they enter the db? You would need to access the data contained within the mdw file which is where the code would need to check to see if current user password is null. If null, display the change password form. If not null open "other" form.
I found this MS code...
Can anyone help me to modify this thinking to check for a null user password within the workgroup.mdw file?
Thanks,
Autoeng
I found this MS code...
Code:
Sub ChangePasswords()
Dim ws As Workspace, usr As User
' Add passwords to the Admin, OrdersAdmin, and OrdersOwner
' user accounts.
Set ws = DBEngine.Workspaces(0)
ws.Users("Admin").NewPassword "", "AdminPwd"
ws.Users("OrdersAdmin").NewPassword "", "OrdAdminPwd"
ws.Users("OrdersOwner").NewPassword "", "OrdOwnerPwd"
' Create a user account, specifying a PID and a password with
' the CreateUser method.
Set usr = ws.CreateUser("Tim Smith", "ilmj2d", "MyPwd")
ws.Users.Append usr
' Create a user account, specifying a password with the
' Password property.
Set usr = ws.CreateUser("Robert King")
usr.PID = "tdi3tcm"
usr.Password = "NewUserPwd"
ws.Users.Append usr
End Sub
Can anyone help me to modify this thinking to check for a null user password within the workgroup.mdw file?
Thanks,
Autoeng