|
-
Dec 2nd, 2002, 04:33 PM
#1
Thread Starter
New Member
DAO Rename User
guyz,
I've written the following code but it doesn't work
Dim usrTemp as DAO.User
set usrTemp = wsMyWorkspace.Users("OldUsername")
usrTemp.Name = sNewUsername
upon reading VB's documentation I know that it failed because the 'Name' property is read-only. the documentation also states that it is read/write when 'unappended' however.
what's the correct way to rename a user? is it possible???
thanks
Rommel the iCeMAn,
Computer Programmer,
Barbados, Caribbean.
-
Dec 3rd, 2002, 03:42 AM
#2
Frenzied Member
Couldn't you create a new user with your new name, copy all the old user's properties to the new user, append it to the collection and then delete the old user?
-
Dec 3rd, 2002, 07:50 AM
#3
Thread Starter
New Member
hi PilgrimPete, 
the thought did cross my mind ... i just thought there was an easier way ... guess i'll try it your way until i find an easier way - if it exists :-D
thanks 4 the suggestion,
Rommel the iCeMAn,
Computer Programmer,
Barbados, Caribbean.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|