access97to2000
Programmer
Hi,
Through Visual Basic 6.0 front end i have to add users to a system.mdw file to certain groups.
when i am trying to add it
Dim catDB As ADOX.Catalog
Set catDB = New ADOX.Catalog
With catDB
' Open Catalog object by using cnnDB.
.ActiveConnection = strConnect
' Create new user account.
.Users.Append strNewUser, strNewUserPwd
' Append new user account to default Users group.
.Groups("Users"
.Users.Append strNewUser
.Groups("dataentry"
.Users.Append strNewUser
End With
like this ... it is adding the user to the groups but when i try to log in with the same user - it says denied. But when i login as admin and go to the user and databse security settings, i can see the user being added to users, dataentry groups - what should i do ? Please help
Through Visual Basic 6.0 front end i have to add users to a system.mdw file to certain groups.
when i am trying to add it
Dim catDB As ADOX.Catalog
Set catDB = New ADOX.Catalog
With catDB
' Open Catalog object by using cnnDB.
.ActiveConnection = strConnect
' Create new user account.
.Users.Append strNewUser, strNewUserPwd
' Append new user account to default Users group.
.Groups("Users"
.Groups("dataentry"
End With
like this ... it is adding the user to the groups but when i try to log in with the same user - it says denied. But when i login as admin and go to the user and databse security settings, i can see the user being added to users, dataentry groups - what should i do ? Please help