Results 1 to 3 of 3

Thread: DAO Rename User

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2002
    Location
    Barbados, Caribbean
    Posts
    7

    Question 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.

  2. #2
    Frenzied Member PilgrimPete's Avatar
    Join Date
    Feb 2002
    Posts
    1,313
    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?

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2002
    Location
    Barbados, Caribbean
    Posts
    7
    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
  •  



Click Here to Expand Forum to Full Width